var e = require("../@babel/runtime/helpers/assertThisInitialized");

require("../@babel/runtime/helpers/Arrayincludes");

var t = require("../@babel/runtime/helpers/regeneratorRuntime"), n = require("../@babel/runtime/helpers/asyncToGenerator"), r = require("../@babel/runtime/helpers/objectSpread2"), i = require("../@babel/runtime/helpers/inherits"), o = require("../@babel/runtime/helpers/createSuper"), a = require("../@babel/runtime/helpers/wrapNativeSuper"), s = require("../@babel/runtime/helpers/createForOfIteratorHelper"), c = require("../@babel/runtime/helpers/classCallCheck"), u = require("../@babel/runtime/helpers/createClass"), f = require("../@babel/runtime/helpers/typeof"), l = require("../@babel/runtime/helpers/defineProperty"), h = require("../@babel/runtime/helpers/slicedToArray"), p = require("../@babel/runtime/helpers/toConsumableArray");

function d(e, t) {
    for (var n = Object.create(null), r = e.split(","), i = 0; i < r.length; i++) n[r[i]] = !0;
    return t ? function(e) {
        return !!n[e.toLowerCase()];
    } : function(e) {
        return !!n[e];
    };
}

var v = /;(?![^(]*\))/g, g = /:([^]+)/, m = /\/\*[\s\S]*?\*\//g;

function y(e) {
    var t = {};
    return e.replace(m, "").split(v).forEach(function(e) {
        if (e) {
            var n = e.split(g);
            n.length > 1 && (t[n[0].trim()] = n[1].trim());
        }
    }), t;
}

var _ = function e(t, n) {
    return n && n.__v_isRef ? e(t, n.value) : L(n) ? l({}, "Map(".concat(n.size, ")"), p(n.entries()).reduce(function(e, t) {
        var n = h(t, 2), r = n[0], i = n[1];
        return e["".concat(r, " =>")] = i, e;
    }, {})) : R(n) ? l({}, "Set(".concat(n.size, ")"), p(n.values())) : !D(n) || E(n) || F(n) ? n : String(n);
}, k = {}, b = [], w = function() {}, x = function() {
    return !1;
}, S = /^on[^a-z]/, P = function(e) {
    return S.test(e);
}, A = function(e) {
    return e.startsWith("onUpdate:");
}, I = Object.assign, T = function(e, t) {
    var n = e.indexOf(t);
    n > -1 && e.splice(n, 1);
}, O = Object.prototype.hasOwnProperty, C = function(e, t) {
    return O.call(e, t);
}, E = Array.isArray, L = function(e) {
    return "[object Map]" === q(e);
}, R = function(e) {
    return "[object Set]" === q(e);
}, M = function(e) {
    return "function" == typeof e;
}, j = function(e) {
    return "string" == typeof e;
}, U = function(e) {
    return "symbol" == f(e);
}, D = function(e) {
    return null !== e && "object" == f(e);
}, N = function(e) {
    return D(e) && M(e.then) && M(e.catch);
}, $ = Object.prototype.toString, q = function(e) {
    return $.call(e);
}, F = function(e) {
    return "[object Object]" === q(e);
}, B = function(e) {
    return j(e) && "NaN" !== e && "-" !== e[0] && "" + parseInt(e, 10) === e;
}, H = d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), K = function(e) {
    var t = Object.create(null);
    return function(n) {
        return t[n] || (t[n] = e(n));
    };
}, V = /-(\w)/g, W = K(function(e) {
    return e.replace(V, function(e, t) {
        return t ? t.toUpperCase() : "";
    });
}), z = /\B([A-Z])/g, J = K(function(e) {
    return e.replace(z, "-$1").toLowerCase();
}), G = K(function(e) {
    return e.charAt(0).toUpperCase() + e.slice(1);
}), Q = K(function(e) {
    return e ? "on".concat(G(e)) : "";
}), Y = function(e, t) {
    return !Object.is(e, t);
}, X = function(e, t) {
    for (var n = 0; n < e.length; n++) e[n](t);
}, Z = function(e) {
    var t = parseFloat(e);
    return isNaN(t) ? e : t;
}, ee = /:/g;

function te(e) {
    var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
    return function() {
        for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o];
        return e && (t = e.apply(n, i), e = null), t;
    };
}

function ne(e, t) {
    if (j(t)) {
        var n = (t = t.replace(/\[(\d+)\]/g, ".$1")).split("."), r = n[0];
        return e || (e = {}), 1 === n.length ? e[r] : ne(e[r], n.slice(1).join("."));
    }
}

function re(e) {
    var t = {};
    return F(e) && Object.keys(e).sort().forEach(function(n) {
        var r = n;
        t[r] = e[r];
    }), Object.keys(t) ? t : e;
}

var ie = encodeURIComponent;

function oe(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ie, n = e ? Object.keys(e).map(function(n) {
        var r = e[n];
        return void 0 === f(r) || null === r ? r = "" : F(r) && (r = JSON.stringify(r)), 
        t(n) + "=" + t(r);
    }).filter(function(e) {
        return e.length > 0;
    }).join("&") : null;
    return n ? "?".concat(n) : "";
}

var ae, se = [ "onInit", "onLoad", "onShow", "onHide", "onUnload", "onBackPress", "onPageScroll", "onTabItemTap", "onReachBottom", "onPullDownRefresh", "onShareTimeline", "onShareAppMessage", "onAddToFavorites", "onSaveExitState", "onNavigationBarButtonTap", "onNavigationBarSearchInputClicked", "onNavigationBarSearchInputChanged", "onNavigationBarSearchInputConfirmed", "onNavigationBarSearchInputFocusChanged" ], ce = [ "onShow", "onHide", "onLaunch", "onError", "onThemeChange", "onPageNotFound", "onUnhandledRejection", "onExit", "onInit", "onLoad", "onReady", "onUnload", "onResize", "onBackPress", "onPageScroll", "onTabItemTap", "onReachBottom", "onPullDownRefresh", "onShareTimeline", "onAddToFavorites", "onShareAppMessage", "onSaveExitState", "onNavigationBarButtonTap", "onNavigationBarSearchInputClicked", "onNavigationBarSearchInputChanged", "onNavigationBarSearchInputConfirmed", "onNavigationBarSearchInputFocusChanged" ], ue = {
    onPageScroll: 1,
    onShareAppMessage: 2,
    onShareTimeline: 4
};

function fe(e, t) {
    var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
    return !(n && !M(t)) && (ce.indexOf(e) > -1 || 0 === e.indexOf("on"));
}

var le = [], he = te(function(e, t) {
    if (M(e._component.onError)) return t(e);
}), pe = function() {};

pe.prototype = {
    on: function(e, t, n) {
        var r = this.e || (this.e = {});
        return (r[e] || (r[e] = [])).push({
            fn: t,
            ctx: n
        }), this;
    },
    once: function(e, t, n) {
        var r = this;
        function i() {
            r.off(e, i), t.apply(n, arguments);
        }
        return i._ = t, this.on(e, i, n);
    },
    emit: function(e) {
        for (var t = [].slice.call(arguments, 1), n = ((this.e || (this.e = {}))[e] || []).slice(), r = 0, i = n.length; r < i; r++) n[r].fn.apply(n[r].ctx, t);
        return this;
    },
    off: function(e, t) {
        var n = this.e || (this.e = {}), r = n[e], i = [];
        if (r && t) for (var o = 0, a = r.length; o < a; o++) r[o].fn !== t && r[o].fn._ !== t && i.push(r[o]);
        return i.length ? n[e] = i : delete n[e], this;
    }
};

var de = pe, ve = [ "{", "}" ], ge = /^(?:\d)+/, me = /^(?:\w)+/, ye = Object.prototype.hasOwnProperty, _e = function(e, t) {
    return ye.call(e, t);
}, ke = new (function() {
    function e() {
        c(this, e), this._caches = Object.create(null);
    }
    return u(e, [ {
        key: "interpolate",
        value: function(e, t) {
            var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ve;
            if (!t) return [ e ];
            var r = this._caches[e];
            return r || (r = function(e, t) {
                for (var n = h(t, 2), r = n[0], i = n[1], o = [], a = 0, s = ""; a < e.length; ) {
                    var c = e[a++];
                    if (c === r) {
                        s && o.push({
                            type: "text",
                            value: s
                        }), s = "";
                        var u = "";
                        for (c = e[a++]; void 0 !== c && c !== i; ) u += c, c = e[a++];
                        var f = c === i, l = ge.test(u) ? "list" : f && me.test(u) ? "named" : "unknown";
                        o.push({
                            value: u,
                            type: l
                        });
                    } else s += c;
                }
                return s && o.push({
                    type: "text",
                    value: s
                }), o;
            }(e, n), this._caches[e] = r), function(e, t) {
                var n, r = [], i = 0, o = Array.isArray(t) ? "list" : null !== (n = t) && "object" == f(n) ? "named" : "unknown";
                if ("unknown" === o) return r;
                for (;i < e.length; ) {
                    var a = e[i];
                    switch (a.type) {
                      case "text":
                        r.push(a.value);
                        break;

                      case "list":
                        r.push(t[parseInt(a.value, 10)]);
                        break;

                      case "named":
                        "named" === o && r.push(t[a.value]);
                    }
                    i++;
                }
                return r;
            }(r, t);
        }
    } ]), e;
}())();

function be(e, t) {
    if (e) {
        if (e = e.trim().replace(/_/g, "-"), t && t[e]) return e;
        if ("chinese" === (e = e.toLowerCase())) return "zh-Hans";
        if (0 === e.indexOf("zh")) return e.indexOf("-hans") > -1 ? "zh-Hans" : e.indexOf("-hant") > -1 ? "zh-Hant" : (n = e, 
        [ "-tw", "-hk", "-mo", "-cht" ].find(function(e) {
            return -1 !== n.indexOf(e);
        }) ? "zh-Hant" : "zh-Hans");
        var n, r = [ "en", "fr", "es" ];
        return t && Object.keys(t).length > 0 && (r = Object.keys(t)), function(e, t) {
            return t.find(function(t) {
                return 0 === e.indexOf(t);
            });
        }(e, r) || void 0;
    }
}

var we = function() {
    function e(t) {
        var n = t.locale, r = t.fallbackLocale, i = t.messages, o = t.watcher, a = t.formater;
        c(this, e), this.locale = "en", this.fallbackLocale = "en", this.message = {}, this.messages = {}, 
        this.watchers = [], r && (this.fallbackLocale = r), this.formater = a || ke, this.messages = i || {}, 
        this.setLocale(n || "en"), o && this.watchLocale(o);
    }
    return u(e, [ {
        key: "setLocale",
        value: function(e) {
            var t = this, n = this.locale;
            this.locale = be(e, this.messages) || this.fallbackLocale, this.messages[this.locale] || (this.messages[this.locale] = {}), 
            this.message = this.messages[this.locale], n !== this.locale && this.watchers.forEach(function(e) {
                e(t.locale, n);
            });
        }
    }, {
        key: "getLocale",
        value: function() {
            return this.locale;
        }
    }, {
        key: "watchLocale",
        value: function(e) {
            var t = this, n = this.watchers.push(e) - 1;
            return function() {
                t.watchers.splice(n, 1);
            };
        }
    }, {
        key: "add",
        value: function(e, t) {
            var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], r = this.messages[e];
            r ? n ? Object.assign(r, t) : Object.keys(t).forEach(function(e) {
                _e(r, e) || (r[e] = t[e]);
            }) : this.messages[e] = t;
        }
    }, {
        key: "f",
        value: function(e, t, n) {
            return this.formater.interpolate(e, t, n).join("");
        }
    }, {
        key: "t",
        value: function(e, t, n) {
            var r = this.message;
            return "string" == typeof t ? (t = be(t, this.messages)) && (r = this.messages[t]) : n = t, 
            _e(r, e) ? this.formater.interpolate(r[e], n).join("") : (console.warn("Cannot translate the value of keypath ".concat(e, ". Use the value of keypath as default.")), 
            e);
        }
    } ]), e;
}();

function xe(e) {
    return function() {
        try {
            return e.apply(e, arguments);
        } catch (e) {
            e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
            console.error(e);
        }
    };
}

var Se = 1, Pe = {};

function Ae(e, t, n) {
    if ("number" == typeof e) {
        var r = Pe[e];
        if (r) return r.keepAlive || delete Pe[e], r.callback(t, n);
    }
    return t;
}

var Ie = "success", Te = "fail", Oe = "complete";

var Ce = "success", Ee = "fail", Le = "complete", Re = {}, Me = {};

function je(e, t) {
    return function(n) {
        return e(n, t) || n;
    };
}

function Ue(e, t, n) {
    for (var r = !1, i = 0; i < e.length; i++) {
        var o = e[i];
        if (r) r = Promise.resolve(je(o, n)); else {
            var a = o(t, n);
            if (N(a) && (r = Promise.resolve(a)), !1 === a) return {
                then: function() {},
                catch: function() {}
            };
        }
    }
    return r || {
        then: function(e) {
            return e(t);
        },
        catch: function() {}
    };
}

function De(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
    return [ Ce, Ee, Le ].forEach(function(n) {
        var r = e[n];
        if (E(r)) {
            var i = t[n];
            t[n] = function(e) {
                Ue(r, e, t).then(function(e) {
                    return M(i) && i(e) || e;
                });
            };
        }
    }), t;
}

function Ne(e, t) {
    var n = [];
    E(Re.returnValue) && n.push.apply(n, p(Re.returnValue));
    var r = Me[e];
    return r && E(r.returnValue) && n.push.apply(n, p(r.returnValue)), n.forEach(function(e) {
        t = e(t) || t;
    }), t;
}

function $e(e) {
    var t = Object.create(null);
    Object.keys(Re).forEach(function(e) {
        "returnValue" !== e && (t[e] = Re[e].slice());
    });
    var n = Me[e];
    return n && Object.keys(n).forEach(function(e) {
        "returnValue" !== e && (t[e] = (t[e] || []).concat(n[e]));
    }), t;
}

function qe(e, t, n, r) {
    var i = $e(e);
    return i && Object.keys(i).length ? E(i.invoke) ? Ue(i.invoke, n).then(function(n) {
        return t.apply(void 0, [ De($e(e), n) ].concat(p(r)));
    }) : t.apply(void 0, [ De(i, n) ].concat(p(r))) : t.apply(void 0, [ n ].concat(p(r)));
}

function Fe(e, t, n, r) {
    return Ae(e, I({
        errMsg: t + ":fail" + (n ? " " + n : "")
    }, r));
}

function Be(e, t, n, r) {
    if (r && r.beforeInvoke) {
        var i = r.beforeInvoke(t);
        if (j(i)) return i;
    }
    var o = function(e, t) {
        var n = e[0];
        if (t && (F(t.formatArgs) || !F(n))) for (var r = t.formatArgs, i = Object.keys(r), o = 0; o < i.length; o++) {
            var a = i[o], s = r[a];
            if (M(s)) {
                var c = s(e[0][a], n);
                if (j(c)) return c;
            } else C(n, a) || (n[a] = s);
        }
    }(t, r);
    if (o) return o;
}

function He(e, t, n, r) {
    return function(n) {
        var i = function(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = n.beforeAll, i = n.beforeSuccess;
            F(t) || (t = {});
            var o = function(e) {
                var t = {};
                for (var n in e) {
                    var r = e[n];
                    M(r) && (t[n] = xe(r), delete e[n]);
                }
                return t;
            }(t), a = o.success, s = o.fail, c = o.complete, u = M(a), f = M(s), l = M(c), h = Se++;
            return function(e, t, n) {
                var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
                Pe[e] = {
                    name: t,
                    keepAlive: r,
                    callback: n
                };
            }(h, e, function(n) {
                (n = n || {}).errMsg = function(e, t) {
                    return e && -1 !== e.indexOf(":fail") ? t + e.substring(e.indexOf(":fail")) : t + ":ok";
                }(n.errMsg, e), M(r) && r(n), n.errMsg === e + ":ok" ? (M(i) && i(n, t), u && a(n)) : f && s(n), 
                l && c(n);
            }), h;
        }(e, n, r), o = Be(0, [ n ], 0, r);
        return o ? Fe(i, e, o) : t(n, {
            resolve: function(t) {
                return function(e, t, n) {
                    return Ae(e, I(n || {}, {
                        errMsg: t + ":ok"
                    }));
                }(i, e, t);
            },
            reject: function(t, n) {
                return Fe(i, e, function(e) {
                    return !e || j(e) ? e : e.stack ? (console.error(e.message + "\n" + e.stack), e.message) : e;
                }(t), n);
            }
        });
    };
}

function Ke(e, t, n, r) {
    return function(e, t, n, r) {
        return function() {
            for (var e = arguments.length, n = new Array(e), i = 0; i < e; i++) n[i] = arguments[i];
            var o = Be(0, n, 0, r);
            if (o) throw new Error(o);
            return t.apply(null, n);
        };
    }(0, t, 0, r);
}

var Ve = !1, We = 0, ze = 0;

var Je = Ke(0, function(e, t) {
    if (0 === We && function() {
        var e = wx.getSystemInfoSync(), t = e.platform, n = e.pixelRatio, r = e.windowWidth;
        We = r, ze = n, Ve = "ios" === t;
    }(), 0 === (e = Number(e))) return 0;
    var n = e / 750 * (t || We);
    return n < 0 && (n = -n), 0 === (n = Math.floor(n + 1e-4)) && (n = 1 !== ze && Ve ? .5 : 1), 
    e < 0 ? -n : n;
});

function Ge(e, t) {
    Object.keys(t).forEach(function(n) {
        M(t[n]) && (e[n] = function(e, t) {
            var n = t ? e ? e.concat(t) : E(t) ? t : [ t ] : e;
            return n ? function(e) {
                for (var t = [], n = 0; n < e.length; n++) -1 === t.indexOf(e[n]) && t.push(e[n]);
                return t;
            }(n) : n;
        }(e[n], t[n]));
    });
}

function Qe(e, t) {
    e && t && Object.keys(t).forEach(function(n) {
        var r = e[n], i = t[n];
        E(r) && M(i) && T(r, i);
    });
}

var Ye, Xe, Ze, et = Ke(0, function(e, t) {
    j(e) && F(t) ? Ge(Me[e] || (Me[e] = {}), t) : F(e) && Ge(Re, e);
}), tt = Ke(0, function(e, t) {
    j(e) ? F(t) ? Qe(Me[e], t) : delete Me[e] : F(e) && Qe(Re, e);
}), nt = new de(), rt = Ke(0, function(e, t) {
    return nt.on(e, t), function() {
        return nt.off(e, t);
    };
}), it = Ke(0, function(e, t) {
    return nt.once(e, t), function() {
        return nt.off(e, t);
    };
}), ot = Ke(0, function(e, t) {
    e ? (E(e) || (e = [ e ]), e.forEach(function(e) {
        return nt.off(e, t);
    })) : nt.e = {};
}), at = Ke(0, function(e) {
    for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
    nt.emit.apply(nt, [ e ].concat(n));
});

function st(e) {
    try {
        return JSON.parse(e);
    } catch (e) {}
    return e;
}

var ct = [];

function ut(e, t) {
    ct.forEach(function(n) {
        n(e, t);
    }), ct.length = 0;
}

var ft = function(e, t) {
    return function() {
        for (var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) i[o - 1] = arguments[o];
        return function(e) {
            return !(!F(e) || ![ Ie, Te, Oe ].find(function(t) {
                return M(e[t]);
            }));
        }(n) ? Ne(e, qe(e, t, n, i)) : Ne(e, new Promise(function(r, o) {
            qe(e, t, I(n, {
                success: r,
                fail: o
            }), i);
        }));
    };
}("getPushClientId", He("getPushClientId", function(e, t) {
    var n = t.resolve, r = t.reject;
    Promise.resolve().then(function() {
        void 0 === Ze && (Ze = !1, Ye = "", Xe = "uniPush is not enabled"), ct.push(function(e, t) {
            e ? n({
                cid: e
            }) : r(t);
        }), void 0 !== Ye && ut(Ye, Xe);
    });
}, 0, void 0)), lt = [], ht = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/, pt = /^create|Manager$/, dt = [ "createBLEConnection" ], vt = [ "createBLEConnection" ], gt = /^on|^off/;

function mt(e) {
    return pt.test(e) && -1 === dt.indexOf(e);
}

function yt(e) {
    return ht.test(e) && -1 === vt.indexOf(e);
}

function _t(e, t) {
    return function(e) {
        return !(mt(e) || yt(e) || function(e) {
            return gt.test(e) && "onPush" !== e;
        }(e));
    }(e) && M(t) ? function() {
        for (var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) i[o - 1] = arguments[o];
        return M(n.success) || M(n.fail) || M(n.complete) ? Ne(e, qe(e, t, n, i)) : Ne(e, new Promise(function(r, o) {
            qe(e, t, I({}, n, {
                success: r,
                fail: o
            }), i);
        }));
    } : t;
}

Promise.prototype.finally || (Promise.prototype.finally = function(e) {
    var t = this.constructor;
    return this.then(function(n) {
        return t.resolve(e && e()).then(function() {
            return n;
        });
    }, function(n) {
        return t.resolve(e && e()).then(function() {
            throw n;
        });
    });
});

var kt, bt = [ "success", "fail", "cancel", "complete" ], wt = function() {
    var e = M(getApp) && getApp({
        allowDefault: !0
    });
    return e && e.$vm ? e.$vm.$locale : be(wx.getSystemInfoSync().language) || "en";
}, xt = [];

function St() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : wx;
    return function(t, n) {
        (kt = kt || e.getStorageSync("__DC_STAT_UUID")) || (kt = Date.now() + "" + Math.floor(1e7 * Math.random()), 
        wx.setStorage({
            key: "__DC_STAT_UUID",
            data: kt
        })), n.deviceId = kt;
    };
}

function Pt(e, t) {
    if (e.safeArea) {
        var n = e.safeArea;
        t.safeAreaInsets = {
            top: n.top,
            left: n.left,
            right: e.windowWidth - n.right,
            bottom: e.screenHeight - n.bottom
        };
    }
}

function At(e, t) {
    for (var n = e.deviceType || "phone", r = {
        ipad: "pad",
        windows: "pc",
        mac: "pc"
    }, i = Object.keys(r), o = t.toLocaleLowerCase(), a = 0; a < i.length; a++) {
        var s = i[a];
        if (-1 !== o.indexOf(s)) {
            n = r[s];
            break;
        }
    }
    return n;
}

function It(e) {
    var t = e;
    return t && (t = t.toLocaleLowerCase()), t;
}

function Tt(e) {
    return wt ? wt() : e;
}

function Ot(e) {
    var t = e.hostName || "WeChat";
    return e.environment ? t = e.environment : e.host && e.host.env && (t = e.host.env), 
    t;
}

"undefined" != typeof global && (global.getLocale = wt);

var Ct = {
    returnValue: function(e, t) {
        Pt(e, t), St()(e, t), function(e, t) {
            var n, r = e.brand, i = void 0 === r ? "" : r, o = e.model, a = void 0 === o ? "" : o, s = e.system, c = void 0 === s ? "" : s, u = e.language, f = void 0 === u ? "" : u, l = e.theme, h = e.version, p = (e.platform, 
            e.fontSizeSetting), d = e.SDKVersion, v = e.pixelRatio, g = e.deviceOrientation, m = "";
            m = c.split(" ")[0] || "", n = c.split(" ")[1] || "";
            var y = h, _ = At(e, a), k = It(i), b = Ot(e), w = g, x = v, S = d, P = f.replace(/_/g, "-"), A = {
                appId: "__UNI__3FCE964",
                appName: "独彩",
                appVersion: "1.0.0",
                appVersionCode: "100",
                appLanguage: Tt(P),
                uniCompileVersion: "3.99",
                uniRuntimeVersion: "3.99",
                uniPlatform: "mp-weixin",
                deviceBrand: k,
                deviceModel: a,
                deviceType: _,
                devicePixelRatio: x,
                deviceOrientation: w,
                osName: m.toLocaleLowerCase(),
                osVersion: n,
                hostTheme: l,
                hostVersion: y,
                hostLanguage: P,
                hostName: b,
                hostSDKVersion: S,
                hostFontSizeSetting: p,
                windowTop: 0,
                windowBottom: 0,
                osLanguage: void 0,
                osTheme: void 0,
                ua: void 0,
                hostPackageName: void 0,
                browserName: void 0,
                browserVersion: void 0
            };
            I(t, A);
        }(e, t);
    }
}, Et = Ct, Lt = {
    args: function(e, t) {
        var n = parseInt(e.current);
        if (!isNaN(n)) {
            var r = e.urls;
            if (E(r)) {
                var i = r.length;
                return i ? (n < 0 ? n = 0 : n >= i && (n = i - 1), n > 0 ? (t.current = r[n], t.urls = r.filter(function(e, t) {
                    return !(t < n) || e !== r[n];
                })) : t.current = r[0], {
                    indicator: !1,
                    loop: !1
                }) : void 0;
            }
        }
    }
}, Rt = {
    returnValue: function(e, t) {
        var n = e.brand, r = e.model, i = At(e, r), o = It(n);
        St()(e, t), t = re(I(t, {
            deviceType: i,
            deviceBrand: o,
            deviceModel: r
        }));
    }
}, Mt = {
    returnValue: function(e, t) {
        var n = e.version, r = e.language, i = e.SDKVersion, o = e.theme, a = Ot(e), s = r.replace(/_/g, "-");
        t = re(I(t, {
            hostVersion: n,
            hostLanguage: s,
            hostName: a,
            hostSDKVersion: i,
            hostTheme: o,
            appId: "__UNI__3FCE964",
            appName: "独彩",
            appVersion: "1.0.0",
            appVersionCode: "100",
            appLanguage: Tt(s)
        }));
    }
}, jt = {
    returnValue: function(e, t) {
        Pt(e, t), t = re(I(t, {
            windowTop: 0,
            windowBottom: 0
        }));
    }
}, Ut = {
    $on: rt,
    $off: ot,
    $once: it,
    $emit: at,
    upx2px: Je,
    interceptors: {},
    addInterceptor: et,
    removeInterceptor: tt,
    onCreateVueApp: function(e) {
        if (ae) return e(ae);
        le.push(e);
    },
    invokeCreateVueAppHook: function(e) {
        ae = e, le.forEach(function(t) {
            return t(e);
        });
    },
    getLocale: wt,
    setLocale: function(e) {
        var t = M(getApp) && getApp();
        return !!t && (t.$vm.$locale !== e && (t.$vm.$locale = e, xt.forEach(function(t) {
            return t({
                locale: e
            });
        }), !0));
    },
    onLocaleChange: function(e) {
        -1 === xt.indexOf(e) && xt.push(e);
    },
    getPushClientId: ft,
    onPushMessage: function(e) {
        -1 === lt.indexOf(e) && lt.push(e);
    },
    offPushMessage: function(e) {
        if (e) {
            var t = lt.indexOf(e);
            t > -1 && lt.splice(t, 1);
        } else lt.length = 0;
    },
    invokePushCallback: function(e) {
        if ("enabled" === e.type) Ze = !0; else if ("clientId" === e.type) Ye = e.cid, Xe = e.errMsg, 
        ut(Ye, e.errMsg); else if ("pushMsg" === e.type) for (var t = {
            type: "receive",
            data: st(e.message)
        }, n = 0; n < lt.length && ((0, lt[n])(t), !t.stopped); n++) ; else "click" === e.type && lt.forEach(function(t) {
            t({
                type: "click",
                data: st(e.message)
            });
        });
    }
}, Dt = [ "qy", "env", "error", "version", "lanDebug", "cloud", "serviceMarket", "router", "worklet", "__webpack_require_UNI_MP_PLUGIN__" ], Nt = [ "lanDebug", "router", "worklet" ], $t = wx.getLaunchOptionsSync ? wx.getLaunchOptionsSync() : null;

function qt(e) {
    return (!$t || 1154 !== $t.scene || !Nt.includes(e)) && (Dt.indexOf(e) > -1 || "function" == typeof wx[e]);
}

function Ft() {
    var e = {};
    for (var t in wx) qt(t) && (e[t] = wx[t]);
    return "undefined" != typeof globalThis && "undefined" == typeof requireMiniProgram && (globalThis.wx = e), 
    e;
}

var Bt, Ht = [ "__route__", "__wxExparserNodeId__", "__wxWebviewId__" ], Kt = (Bt = {
    oauth: [ "weixin" ],
    share: [ "weixin" ],
    payment: [ "wxpay" ],
    push: [ "weixin" ]
}, function(e) {
    var t, n = e.service, r = e.success, i = e.fail, o = e.complete;
    Bt[n] ? (t = {
        errMsg: "getProvider:ok",
        service: n,
        provider: Bt[n]
    }, M(r) && r(t)) : (t = {
        errMsg: "getProvider:fail:服务[" + n + "]不存在"
    }, M(i) && i(t)), M(o) && o(t);
}), Vt = Ft(), Wt = Vt.getAppBaseInfo && Vt.getAppBaseInfo();

Wt || (Wt = Vt.getSystemInfoSync());

var zt, Jt, Gt = Wt ? Wt.host : null, Qt = Gt && "SAAASDK" === Gt.env ? Vt.miniapp.shareVideoMessage : Vt.shareVideoMessage, Yt = Object.freeze({
    __proto__: null,
    createSelectorQuery: function() {
        var e = Vt.createSelectorQuery(), t = e.in;
        return e.in = function(e) {
            return t.call(this, function(e) {
                var t = Object.create(null);
                return Ht.forEach(function(n) {
                    t[n] = e[n];
                }), t;
            }(e));
        }, e;
    },
    getProvider: Kt,
    shareVideoMessage: Qt
}), Xt = Object.freeze({
    __proto__: null,
    compressImage: {
        args: function(e, t) {
            e.compressedHeight && !t.compressHeight && (t.compressHeight = e.compressedHeight), 
            e.compressedWidth && !t.compressWidth && (t.compressWidth = e.compressedWidth);
        }
    },
    getAppAuthorizeSetting: {
        returnValue: function(e, t) {
            var n = e.locationReducedAccuracy;
            t.locationAccuracy = "unsupported", !0 === n ? t.locationAccuracy = "reduced" : !1 === n && (t.locationAccuracy = "full");
        }
    },
    getAppBaseInfo: Mt,
    getDeviceInfo: Rt,
    getSystemInfo: Ct,
    getSystemInfoSync: Et,
    getWindowInfo: jt,
    previewImage: Lt,
    redirectTo: {},
    showActionSheet: {
        args: function(e, t) {
            t.alertText = e.title;
        }
    }
}), Zt = Ft(), en = function(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : wx, r = function(e) {
        function t(e, t, n) {
            return function(i) {
                return t(r(e, i, n));
            };
        }
        function n(e, n) {
            var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, o = arguments.length > 4 && void 0 !== arguments[4] && arguments[4];
            if (F(n)) {
                var a = !0 === o ? n : {};
                for (var s in M(r) && (r = r(n, a) || {}), n) if (C(r, s)) {
                    var c = r[s];
                    M(c) && (c = c(n[s], n, a)), c ? j(c) ? a[c] = n[s] : F(c) && (a[c.name ? c.name : s] = c.value) : console.warn("微信小程序 ".concat(e, " 暂不支持 ").concat(s));
                } else if (-1 !== bt.indexOf(s)) {
                    var u = n[s];
                    M(u) && (a[s] = t(e, u, i));
                } else o || C(a, s) || (a[s] = n[s]);
                return a;
            }
            return M(n) && (n = t(e, n, i)), n;
        }
        function r(t, r, i) {
            var o = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
            return M(e.returnValue) && (r = e.returnValue(t, r)), n(t, r, i, {}, o);
        }
        return function(t, i) {
            if (!C(e, t)) return i;
            var o = e[t];
            return o ? function(e, i) {
                var a = o;
                M(o) && (a = o(e));
                var s = [ e = n(t, e, a.args, a.returnValue) ];
                void 0 !== i && s.push(i);
                var c = wx[a.name || t].apply(wx, s);
                return yt(t) ? r(t, c, a.returnValue, mt(t)) : c;
            } : function() {
                console.error("微信小程序 暂不支持".concat(t));
            };
        };
    }(t);
    return new Proxy({}, {
        get: function(t, i) {
            return C(t, i) ? t[i] : C(e, i) ? _t(i, e[i]) : C(Ut, i) ? _t(i, Ut[i]) : _t(i, r(i, n[i]));
        }
    });
}(Yt, Xt, Zt), tn = function() {
    function e() {
        var t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
        c(this, e), this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], 
        this.parent = zt, !t && zt && (this.index = (zt.scopes || (zt.scopes = [])).push(this) - 1);
    }
    return u(e, [ {
        key: "active",
        get: function() {
            return this._active;
        }
    }, {
        key: "run",
        value: function(e) {
            if (this._active) {
                var t = zt;
                try {
                    return zt = this, e();
                } finally {
                    zt = t;
                }
            }
        }
    }, {
        key: "on",
        value: function() {
            zt = this;
        }
    }, {
        key: "off",
        value: function() {
            zt = this.parent;
        }
    }, {
        key: "stop",
        value: function(e) {
            if (this._active) {
                var t, n;
                for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].stop();
                for (t = 0, n = this.cleanups.length; t < n; t++) this.cleanups[t]();
                if (this.scopes) for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].stop(!0);
                if (!this.detached && this.parent && !e) {
                    var r = this.parent.scopes.pop();
                    r && r !== this && (this.parent.scopes[this.index] = r, r.index = this.index);
                }
                this.parent = void 0, this._active = !1;
            }
        }
    } ]), e;
}(), nn = function(e) {
    var t = new Set(e);
    return t.w = 0, t.n = 0, t;
}, rn = function(e) {
    return (e.w & cn) > 0;
}, on = function(e) {
    return (e.n & cn) > 0;
}, an = new WeakMap(), sn = 0, cn = 1, un = Symbol(""), fn = Symbol(""), ln = function() {
    function e(t) {
        var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null, r = arguments.length > 2 ? arguments[2] : void 0;
        c(this, e), this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, 
        function(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : zt;
            t && t.active && t.effects.push(e);
        }(this, r);
    }
    return u(e, [ {
        key: "run",
        value: function() {
            if (!this.active) return this.fn();
            for (var e = Jt, t = pn; e; ) {
                if (e === this) return;
                e = e.parent;
            }
            try {
                return this.parent = Jt, Jt = this, pn = !0, cn = 1 << ++sn, sn <= 30 ? function(e) {
                    var t = e.deps;
                    if (t.length) for (var n = 0; n < t.length; n++) t[n].w |= cn;
                }(this) : hn(this), this.fn();
            } finally {
                sn <= 30 && function(e) {
                    var t = e.deps;
                    if (t.length) {
                        for (var n = 0, r = 0; r < t.length; r++) {
                            var i = t[r];
                            rn(i) && !on(i) ? i.delete(e) : t[n++] = i, i.w &= ~cn, i.n &= ~cn;
                        }
                        t.length = n;
                    }
                }(this), cn = 1 << --sn, Jt = this.parent, pn = t, this.parent = void 0, this.deferStop && this.stop();
            }
        }
    }, {
        key: "stop",
        value: function() {
            Jt === this ? this.deferStop = !0 : this.active && (hn(this), this.onStop && this.onStop(), 
            this.active = !1);
        }
    } ]), e;
}();

function hn(e) {
    var t = e.deps;
    if (t.length) {
        for (var n = 0; n < t.length; n++) t[n].delete(e);
        t.length = 0;
    }
}

var pn = !0, dn = [];

function vn() {
    dn.push(pn), pn = !1;
}

function gn() {
    var e = dn.pop();
    pn = void 0 === e || e;
}

function mn(e, t, n) {
    if (pn && Jt) {
        var r = an.get(e);
        r || an.set(e, r = new Map());
        var i = r.get(n);
        i || r.set(n, i = nn()), yn(i);
    }
}

function yn(e, t) {
    var n = !1;
    sn <= 30 ? on(e) || (e.n |= cn, n = !rn(e)) : n = !e.has(Jt), n && (e.add(Jt), Jt.deps.push(e));
}

function _n(e, t, n, r, i, o) {
    var a = an.get(e);
    if (a) {
        var c = [];
        if ("clear" === t) c = p(a.values()); else if ("length" === n && E(e)) {
            var u = Number(r);
            a.forEach(function(e, t) {
                ("length" === t || t >= u) && c.push(e);
            });
        } else switch (void 0 !== n && c.push(a.get(n)), t) {
          case "add":
            E(e) ? B(n) && c.push(a.get("length")) : (c.push(a.get(un)), L(e) && c.push(a.get(fn)));
            break;

          case "delete":
            E(e) || (c.push(a.get(un)), L(e) && c.push(a.get(fn)));
            break;

          case "set":
            L(e) && c.push(a.get(un));
        }
        if (1 === c.length) c[0] && kn(c[0]); else {
            var f, l = [], h = s(c);
            try {
                for (h.s(); !(f = h.n()).done; ) {
                    var d = f.value;
                    d && l.push.apply(l, p(d));
                }
            } catch (e) {
                e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                h.e(e);
            } finally {
                h.f();
            }
            kn(nn(l));
        }
    }
}

function kn(e, t) {
    var n, r = E(e) ? e : p(e), i = s(r);
    try {
        for (i.s(); !(n = i.n()).done; ) {
            var o = n.value;
            o.computed && bn(o);
        }
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        i.e(e);
    } finally {
        i.f();
    }
    var a, c = s(r);
    try {
        for (c.s(); !(a = c.n()).done; ) {
            var u = a.value;
            u.computed || bn(u);
        }
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        c.e(e);
    } finally {
        c.f();
    }
}

function bn(e, t) {
    (e !== Jt || e.allowRecurse) && (e.scheduler ? e.scheduler() : e.run());
}

var wn = d("__proto__,__v_isRef,__isVue"), xn = new Set(Object.getOwnPropertyNames(Symbol).filter(function(e) {
    return "arguments" !== e && "caller" !== e;
}).map(function(e) {
    return Symbol[e];
}).filter(U)), Sn = On(), Pn = On(!1, !0), An = On(!0), In = function() {
    var e = {};
    return [ "includes", "indexOf", "lastIndexOf" ].forEach(function(t) {
        e[t] = function() {
            for (var e = hr(this), n = 0, r = this.length; n < r; n++) mn(e, 0, n + "");
            for (var i = arguments.length, o = new Array(i), a = 0; a < i; a++) o[a] = arguments[a];
            var s = e[t].apply(e, o);
            return -1 === s || !1 === s ? e[t].apply(e, p(o.map(hr))) : s;
        };
    }), [ "push", "pop", "shift", "unshift", "splice" ].forEach(function(t) {
        e[t] = function() {
            vn();
            for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r];
            var i = hr(this)[t].apply(this, n);
            return gn(), i;
        };
    }), e;
}();

function Tn(e) {
    var t = hr(this);
    return mn(t, 0, e), t.hasOwnProperty(e);
}

function On() {
    var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
    return function(n, r, i) {
        if ("__v_isReactive" === r) return !e;
        if ("__v_isReadonly" === r) return e;
        if ("__v_isShallow" === r) return t;
        if ("__v_raw" === r && i === (e ? t ? or : ir : t ? rr : nr).get(n)) return n;
        var o = E(n);
        if (!e) {
            if (o && C(In, r)) return Reflect.get(In, r, i);
            if ("hasOwnProperty" === r) return Tn;
        }
        var a = Reflect.get(n, r, i);
        return (U(r) ? xn.has(r) : wn(r)) ? a : (e || mn(n, 0, r), t ? a : yr(a) ? o && B(r) ? a : a.value : D(a) ? e ? sr(a) : ar(a) : a);
    };
}

function Cn() {
    var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
    return function(t, n, r, i) {
        var o = t[n];
        if (fr(o) && yr(o) && !yr(r)) return !1;
        if (!e && (lr(r) || fr(r) || (o = hr(o), r = hr(r)), !E(t) && yr(o) && !yr(r))) return o.value = r, 
        !0;
        var a = E(t) && B(n) ? Number(n) < t.length : C(t, n), s = Reflect.set(t, n, r, i);
        return t === hr(i) && (a ? Y(r, o) && _n(t, "set", n, r) : _n(t, "add", n, r)), 
        s;
    };
}

var En = {
    get: Sn,
    set: Cn(),
    deleteProperty: function(e, t) {
        var n = C(e, t);
        e[t];
        var r = Reflect.deleteProperty(e, t);
        return r && n && _n(e, "delete", t, void 0), r;
    },
    has: function(e, t) {
        var n = Reflect.has(e, t);
        return U(t) && xn.has(t) || mn(e, 0, t), n;
    },
    ownKeys: function(e) {
        return mn(e, 0, E(e) ? "length" : un), Reflect.ownKeys(e);
    }
}, Ln = {
    get: An,
    set: function(e, t) {
        return !0;
    },
    deleteProperty: function(e, t) {
        return !0;
    }
}, Rn = I({}, En, {
    get: Pn,
    set: Cn(!0)
}), Mn = function(e) {
    return e;
}, jn = function(e) {
    return Reflect.getPrototypeOf(e);
};

function Un(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], i = hr(e = e.__v_raw), o = hr(t);
    n || (t !== o && mn(i, 0, t), mn(i, 0, o));
    var a = jn(i), s = a.has, c = r ? Mn : n ? vr : dr;
    return s.call(i, t) ? c(e.get(t)) : s.call(i, o) ? c(e.get(o)) : void (e !== i && e.get(t));
}

function Dn(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = this.__v_raw, r = hr(n), i = hr(e);
    return t || (e !== i && mn(r, 0, e), mn(r, 0, i)), e === i ? n.has(e) : n.has(e) || n.has(i);
}

function Nn(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
    return e = e.__v_raw, !t && mn(hr(e), 0, un), Reflect.get(e, "size", e);
}

function $n(e) {
    e = hr(e);
    var t = hr(this);
    return jn(t).has.call(t, e) || (t.add(e), _n(t, "add", e, e)), this;
}

function qn(e, t) {
    t = hr(t);
    var n = hr(this), r = jn(n), i = r.has, o = r.get, a = i.call(n, e);
    a || (e = hr(e), a = i.call(n, e));
    var s = o.call(n, e);
    return n.set(e, t), a ? Y(t, s) && _n(n, "set", e, t) : _n(n, "add", e, t), this;
}

function Fn(e) {
    var t = hr(this), n = jn(t), r = n.has, i = n.get, o = r.call(t, e);
    o || (e = hr(e), o = r.call(t, e)), i && i.call(t, e);
    var a = t.delete(e);
    return o && _n(t, "delete", e, void 0), a;
}

function Bn() {
    var e = hr(this), t = 0 !== e.size, n = e.clear();
    return t && _n(e, "clear", void 0, void 0), n;
}

function Hn(e, t) {
    return function(n, r) {
        var i = this, o = i.__v_raw, a = hr(o), s = t ? Mn : e ? vr : dr;
        return !e && mn(a, 0, un), o.forEach(function(e, t) {
            return n.call(r, s(e), s(t), i);
        });
    };
}

function Kn(e, t, n) {
    return function() {
        var r = this.__v_raw, i = hr(r), o = L(i), a = "entries" === e || e === Symbol.iterator && o, s = "keys" === e && o, c = r[e].apply(r, arguments), u = n ? Mn : t ? vr : dr;
        return !t && mn(i, 0, s ? fn : un), l({
            next: function() {
                var e = c.next(), t = e.value, n = e.done;
                return n ? {
                    value: t,
                    done: n
                } : {
                    value: a ? [ u(t[0]), u(t[1]) ] : u(t),
                    done: n
                };
            }
        }, Symbol.iterator, function() {
            return this;
        });
    };
}

function Vn(e) {
    return function() {
        return "delete" !== e && this;
    };
}

var Wn = function() {
    var e = {
        get: function(e) {
            return Un(this, e);
        },
        get size() {
            return Nn(this);
        },
        has: Dn,
        add: $n,
        set: qn,
        delete: Fn,
        clear: Bn,
        forEach: Hn(!1, !1)
    }, t = {
        get: function(e) {
            return Un(this, e, !1, !0);
        },
        get size() {
            return Nn(this);
        },
        has: Dn,
        add: $n,
        set: qn,
        delete: Fn,
        clear: Bn,
        forEach: Hn(!1, !0)
    }, n = {
        get: function(e) {
            return Un(this, e, !0);
        },
        get size() {
            return Nn(this, !0);
        },
        has: function(e) {
            return Dn.call(this, e, !0);
        },
        add: Vn("add"),
        set: Vn("set"),
        delete: Vn("delete"),
        clear: Vn("clear"),
        forEach: Hn(!0, !1)
    }, r = {
        get: function(e) {
            return Un(this, e, !0, !0);
        },
        get size() {
            return Nn(this, !0);
        },
        has: function(e) {
            return Dn.call(this, e, !0);
        },
        add: Vn("add"),
        set: Vn("set"),
        delete: Vn("delete"),
        clear: Vn("clear"),
        forEach: Hn(!0, !0)
    };
    return [ "keys", "values", "entries", Symbol.iterator ].forEach(function(i) {
        e[i] = Kn(i, !1, !1), n[i] = Kn(i, !0, !1), t[i] = Kn(i, !1, !0), r[i] = Kn(i, !0, !0);
    }), [ e, n, t, r ];
}(), zn = h(Wn, 4), Jn = zn[0], Gn = zn[1], Qn = zn[2], Yn = zn[3];

function Xn(e, t) {
    var n = t ? e ? Yn : Qn : e ? Gn : Jn;
    return function(t, r, i) {
        return "__v_isReactive" === r ? !e : "__v_isReadonly" === r ? e : "__v_raw" === r ? t : Reflect.get(C(n, r) && r in t ? n : t, r, i);
    };
}

var Zn = {
    get: Xn(!1, !1)
}, er = {
    get: Xn(!1, !0)
}, tr = {
    get: Xn(!0, !1)
}, nr = new WeakMap(), rr = new WeakMap(), ir = new WeakMap(), or = new WeakMap();

function ar(e) {
    return fr(e) ? e : cr(e, !1, En, Zn, nr);
}

function sr(e) {
    return cr(e, !0, Ln, tr, ir);
}

function cr(e, t, n, r, i) {
    if (!D(e)) return e;
    if (e.__v_raw && (!t || !e.__v_isReactive)) return e;
    var o = i.get(e);
    if (o) return o;
    var a = function(e) {
        return e.__v_skip || !Object.isExtensible(e) ? 0 : function(e) {
            switch (e) {
              case "Object":
              case "Array":
                return 1;

              case "Map":
              case "Set":
              case "WeakMap":
              case "WeakSet":
                return 2;

              default:
                return 0;
            }
        }(function(e) {
            return q(e).slice(8, -1);
        }(e));
    }(e);
    if (0 === a) return e;
    var s = new Proxy(e, 2 === a ? r : n);
    return i.set(e, s), s;
}

function ur(e) {
    return fr(e) ? ur(e.__v_raw) : !(!e || !e.__v_isReactive);
}

function fr(e) {
    return !(!e || !e.__v_isReadonly);
}

function lr(e) {
    return !(!e || !e.__v_isShallow);
}

function hr(e) {
    var t = e && e.__v_raw;
    return t ? hr(t) : e;
}

function pr(e) {
    return function(e, t, n) {
        Object.defineProperty(e, "__v_skip", {
            configurable: !0,
            enumerable: !1,
            value: !0
        });
    }(e), e;
}

var dr = function(e) {
    return D(e) ? ar(e) : e;
}, vr = function(e) {
    return D(e) ? sr(e) : e;
};

function gr(e) {
    pn && Jt && yn((e = hr(e)).dep || (e.dep = nn()));
}

function mr(e, t) {
    var n = (e = hr(e)).dep;
    n && kn(n);
}

function yr(e) {
    return !(!e || !0 !== e.__v_isRef);
}

var _r = function() {
    function e(t, n) {
        c(this, e), this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : hr(t), 
        this._value = n ? t : dr(t);
    }
    return u(e, [ {
        key: "value",
        get: function() {
            return gr(this), this._value;
        },
        set: function(e) {
            var t = this.__v_isShallow || lr(e) || fr(e);
            e = t ? e : hr(e), Y(e, this._rawValue) && (this._rawValue = e, this._value = t ? e : dr(e), 
            mr(this));
        }
    } ]), e;
}();

function kr(e) {
    return yr(e) ? e.value : e;
}

var br, wr = {
    get: function(e, t, n) {
        return kr(Reflect.get(e, t, n));
    },
    set: function(e, t, n, r) {
        var i = e[t];
        return yr(i) && !yr(n) ? (i.value = n, !0) : Reflect.set(e, t, n, r);
    }
};

function xr(e) {
    return ur(e) ? e : new Proxy(e, wr);
}

var Sr = function() {
    function e(t, n, r, i) {
        var o = this;
        c(this, e), this._setter = n, this.dep = void 0, this.__v_isRef = !0, this[br] = !1, 
        this._dirty = !0, this.effect = new ln(t, function() {
            o._dirty || (o._dirty = !0, mr(o));
        }), this.effect.computed = this, this.effect.active = this._cacheable = !i, this.__v_isReadonly = r;
    }
    return u(e, [ {
        key: "value",
        get: function() {
            var e = hr(this);
            return gr(e), !e._dirty && e._cacheable || (e._dirty = !1, e._value = e.effect.run()), 
            e._value;
        },
        set: function(e) {
            this._setter(e);
        }
    } ]), e;
}();

function Pr(e, t, n, r) {
    var i;
    try {
        i = r ? e.apply(void 0, p(r)) : e();
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        Ir(e, t, n);
    }
    return i;
}

function Ar(e, t, n, r) {
    if (M(e)) {
        var i = Pr(e, t, n, r);
        return i && N(i) && i.catch(function(e) {
            Ir(e, t, n);
        }), i;
    }
    for (var o = [], a = 0; a < e.length; a++) o.push(Ar(e[a], t, n, r));
    return o;
}

function Ir(e, t, n) {
    var r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3];
    if (t && t.vnode, t) {
        for (var i = t.parent, o = t.proxy, a = n; i; ) {
            var s = i.ec;
            if (s) for (var c = 0; c < s.length; c++) if (!1 === s[c](e, o, a)) return;
            i = i.parent;
        }
        var u = t.appContext.config.errorHandler;
        if (u) return void Pr(u, null, 10, [ e, o, a ]);
    }
    !function(e, t, n) {
        console.error(e);
    }(e, 0, 0, r);
}

br = "__v_isReadonly";

var Tr = !1, Or = !1, Cr = [], Er = 0, Lr = [], Rr = null, Mr = 0, jr = Promise.resolve(), Ur = null;

function Dr(e) {
    var t = Ur || jr;
    return e ? t.then(this ? e.bind(this) : e) : t;
}

function Nr(e) {
    Cr.length && Cr.includes(e, Tr && e.allowRecurse ? Er + 1 : Er) || (null == e.id ? Cr.push(e) : Cr.splice(function(e) {
        for (var t = Er + 1, n = Cr.length; t < n; ) {
            var r = t + n >>> 1;
            Br(Cr[r]) < e ? t = r + 1 : n = r;
        }
        return t;
    }(e.id), 0, e), $r());
}

function $r() {
    Tr || Or || (Or = !0, Ur = jr.then(Kr));
}

function qr(e) {
    E(e) ? Lr.push.apply(Lr, p(e)) : Rr && Rr.includes(e, e.allowRecurse ? Mr + 1 : Mr) || Lr.push(e), 
    $r();
}

function Fr(e) {
    for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Tr ? Er + 1 : 0; t < Cr.length; t++) {
        var n = Cr[t];
        n && n.pre && (Cr.splice(t, 1), t--, n());
    }
}

var Br = function(e) {
    return null == e.id ? 1 / 0 : e.id;
}, Hr = function(e, t) {
    var n = Br(e) - Br(t);
    if (0 === n) {
        if (e.pre && !t.pre) return -1;
        if (t.pre && !e.pre) return 1;
    }
    return n;
};

function Kr(e) {
    Or = !1, Tr = !0, Cr.sort(Hr);
    try {
        for (Er = 0; Er < Cr.length; Er++) {
            var t = Cr[Er];
            t && !1 !== t.active && Pr(t, null, 14);
        }
    } finally {
        Er = 0, Cr.length = 0, function(e) {
            if (Lr.length) {
                var t, n = p(new Set(Lr));
                if (Lr.length = 0, Rr) return void (t = Rr).push.apply(t, p(n));
                for ((Rr = n).sort(function(e, t) {
                    return Br(e) - Br(t);
                }), Mr = 0; Mr < Rr.length; Mr++) Rr[Mr]();
                Rr = null, Mr = 0;
            }
        }(), Tr = !1, Ur = null, (Cr.length || Lr.length) && Kr();
    }
}

function Vr(e, t) {
    if (!e.isUnmounted) {
        for (var n = e.vnode.props || k, r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++) i[o - 2] = arguments[o];
        var a = i, s = t.startsWith("update:"), c = s && t.slice(7);
        if (c && c in n) {
            var u = "".concat("modelValue" === c ? "model" : c, "Modifiers"), f = n[u] || k, l = f.number, h = f.trim;
            h && (a = i.map(function(e) {
                return j(e) ? e.trim() : e;
            })), l && (a = i.map(Z));
        }
        var p, d = n[p = Q(t)] || n[p = Q(W(t))];
        !d && s && (d = n[p = Q(J(t))]), d && Ar(d, e, 6, a);
        var v = n[p + "Once"];
        if (v) {
            if (e.emitted) {
                if (e.emitted[p]) return;
            } else e.emitted = {};
            e.emitted[p] = !0, Ar(v, e, 6, a);
        }
    }
}

function Wr(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], r = t.emitsCache, i = r.get(e);
    if (void 0 !== i) return i;
    var o = e.emits, a = {}, s = !1;
    if (!M(e)) {
        var c = function(e) {
            var n = Wr(e, t, !0);
            n && (s = !0, I(a, n));
        };
        !n && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c);
    }
    return o || s ? (E(o) ? o.forEach(function(e) {
        return a[e] = null;
    }) : I(a, o), D(e) && r.set(e, a), a) : (D(e) && r.set(e, null), null);
}

function zr(e, t) {
    return !(!e || !P(t)) && (t = t.slice(2).replace(/Once$/, ""), C(e, t[0].toLowerCase() + t.slice(1)) || C(e, J(t)) || C(e, t));
}

var Jr = null;

function Gr(e) {
    var t = Jr;
    return Jr = e, e && e.type.__scopeId, t;
}

function Qr(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], r = Ji || Jr;
    if (r) {
        var i = null == r.parent ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides;
        if (i && e in i) return i[e];
        if (arguments.length > 1) return n && M(t) ? t.call(r.proxy) : t;
    }
}

var Yr = {};

function Xr(e, t, n) {
    return Zr(e, t, n);
}

function Zr(e, t) {
    var n, r, i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : k, o = i.immediate, a = i.deep, s = i.flush, c = (i.onTrack, 
    i.onTrigger, zt === (null == Ji ? void 0 : Ji.scope) ? Ji : null), u = !1, f = !1;
    if (yr(e) ? (n = function() {
        return e.value;
    }, u = lr(e)) : ur(e) ? (n = function() {
        return e;
    }, a = !0) : E(e) ? (f = !0, u = e.some(function(e) {
        return ur(e) || lr(e);
    }), n = function() {
        return e.map(function(e) {
            return yr(e) ? e.value : ur(e) ? ni(e) : M(e) ? Pr(e, c, 2) : void 0;
        });
    }) : n = M(e) ? t ? function() {
        return Pr(e, c, 2);
    } : function() {
        if (!c || !c.isUnmounted) return r && r(), Ar(e, c, 3, [ p ]);
    } : w, t && a) {
        var l = n;
        n = function() {
            return ni(l());
        };
    }
    var h, p = function(e) {
        r = g.onStop = function() {
            Pr(e, c, 4);
        };
    }, d = f ? new Array(e.length).fill(Yr) : Yr, v = function() {
        if (g.active) if (t) {
            var e = g.run();
            (a || u || (f ? e.some(function(e, t) {
                return Y(e, d[t]);
            }) : Y(e, d))) && (r && r(), Ar(t, c, 3, [ e, d === Yr ? void 0 : f && d[0] === Yr ? [] : d, p ]), 
            d = e);
        } else g.run();
    };
    v.allowRecurse = !!t, "sync" === s ? h = v : "post" === s ? h = function() {
        return Ki(v, c && c.suspense);
    } : (v.pre = !0, c && (v.id = c.uid), h = function() {
        return Nr(v);
    });
    var g = new ln(n, h);
    return t ? o ? v() : d = g.run() : "post" === s ? Ki(g.run.bind(g), c && c.suspense) : g.run(), 
    function() {
        g.stop(), c && c.scope && T(c.scope.effects, g);
    };
}

function ei(e, t, n) {
    var r, i = this.proxy, o = j(e) ? e.includes(".") ? ti(i, e) : function() {
        return i[e];
    } : e.bind(i, i);
    M(t) ? r = t : (r = t.handler, n = t);
    var a = Ji;
    Qi(this);
    var s = Zr(o, r.bind(i), n);
    return a ? Qi(a) : Yi(), s;
}

function ti(e, t) {
    var n = t.split(".");
    return function() {
        for (var t = e, r = 0; r < n.length && t; r++) t = t[n[r]];
        return t;
    };
}

function ni(e, t) {
    if (!D(e) || e.__v_skip) return e;
    if ((t = t || new Set()).has(e)) return e;
    if (t.add(e), yr(e)) ni(e.value, t); else if (E(e)) for (var n = 0; n < e.length; n++) ni(e[n], t); else if (R(e) || L(e)) e.forEach(function(e) {
        ni(e, t);
    }); else if (F(e)) for (var r in e) ni(e[r], t);
    return e;
}

function ri(e, t) {
    oi(e, "a", t);
}

function ii(e, t) {
    oi(e, "da", t);
}

function oi(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ji, r = e.__wdc || (e.__wdc = function() {
        for (var t = n; t; ) {
            if (t.isDeactivated) return;
            t = t.parent;
        }
        return e();
    });
    if (si(t, r, n), n) for (var i = n.parent; i && i.parent; ) i.parent.vnode.type.__isKeepAlive && ai(r, t, n, i), 
    i = i.parent;
}

function ai(e, t, n, r) {
    var i = si(t, e, r, !0);
    di(function() {
        T(r[t], i);
    }, n);
}

function si(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ji, r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
    if (n) {
        (function(e) {
            return se.indexOf(e) > -1;
        })(e) && (n = n.root);
        var i = n[e] || (n[e] = []), o = t.__weh || (t.__weh = function() {
            if (!n.isUnmounted) {
                vn(), Qi(n);
                for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o];
                var a = Ar(t, n, e, i);
                return Yi(), gn(), a;
            }
        });
        return r ? i.unshift(o) : i.push(o), o;
    }
}

var ci = function(e) {
    return function(t) {
        var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Ji;
        return (!Zi || "sp" === e) && si(e, function() {
            return t.apply(void 0, arguments);
        }, n);
    };
}, ui = ci("bm"), fi = ci("m"), li = ci("bu"), hi = ci("u"), pi = ci("bum"), di = ci("um"), vi = ci("sp"), gi = ci("rtg"), mi = ci("rtc");

function yi(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Ji;
    si("ec", e, t);
}

function _i(e, t) {
    return e && (e[t] || e[W(t)] || e[G(W(t))]);
}

var ki = function e(t) {
    return t ? Xi(t) ? to(t) || t.proxy : e(t.parent) : null;
}, bi = I(Object.create(null), {
    $: function(e) {
        return e;
    },
    $el: function(e) {
        return e.__$el || (e.__$el = {});
    },
    $data: function(e) {
        return e.data;
    },
    $props: function(e) {
        return e.props;
    },
    $attrs: function(e) {
        return e.attrs;
    },
    $slots: function(e) {
        return e.slots;
    },
    $refs: function(e) {
        return e.refs;
    },
    $parent: function(e) {
        return ki(e.parent);
    },
    $root: function(e) {
        return ki(e.root);
    },
    $emit: function(e) {
        return e.emit;
    },
    $options: function(e) {
        return Ii(e);
    },
    $forceUpdate: function(e) {
        return e.f || (e.f = function() {
            return Nr(e.update);
        });
    },
    $watch: function(e) {
        return ei.bind(e);
    }
}), wi = function(e, t) {
    return e !== k && !e.__isScriptSetup && C(e, t);
}, xi = {
    get: function(e, t) {
        var n, r = e._, i = r.ctx, o = r.setupState, a = r.data, s = r.props, c = r.accessCache, u = r.type, f = r.appContext;
        if ("$" !== t[0]) {
            var l = c[t];
            if (void 0 !== l) switch (l) {
              case 1:
                return o[t];

              case 2:
                return a[t];

              case 4:
                return i[t];

              case 3:
                return s[t];
            } else {
                if (wi(o, t)) return c[t] = 1, o[t];
                if (a !== k && C(a, t)) return c[t] = 2, a[t];
                if ((n = r.propsOptions[0]) && C(n, t)) return c[t] = 3, s[t];
                if (i !== k && C(i, t)) return c[t] = 4, i[t];
                Si && (c[t] = 0);
            }
        }
        var h, p, d = bi[t];
        return d ? ("$attrs" === t && mn(r, 0, t), d(r)) : (h = u.__cssModules) && (h = h[t]) ? h : i !== k && C(i, t) ? (c[t] = 4, 
        i[t]) : (p = f.config.globalProperties, C(p, t) ? p[t] : void 0);
    },
    set: function(e, t, n) {
        var r = e._, i = r.data, o = r.setupState, a = r.ctx;
        return wi(o, t) ? (o[t] = n, !0) : i !== k && C(i, t) ? (i[t] = n, !0) : !(C(r.props, t) || "$" === t[0] && t.slice(1) in r || (a[t] = n, 
        0));
    },
    has: function(e, t) {
        var n, r = e._, i = r.data, o = r.setupState, a = r.accessCache, s = r.ctx, c = r.appContext, u = r.propsOptions;
        return !!a[t] || i !== k && C(i, t) || wi(o, t) || (n = u[0]) && C(n, t) || C(s, t) || C(bi, t) || C(c.config.globalProperties, t);
    },
    defineProperty: function(e, t, n) {
        return null != n.get ? e._.accessCache[t] = 0 : C(n, "value") && this.set(e, t, n.value, null), 
        Reflect.defineProperty(e, t, n);
    }
}, Si = !0;

function Pi(e, t, n) {
    Ar(E(e) ? e.map(function(e) {
        return e.bind(t.proxy);
    }) : e.bind(t.proxy), t, n);
}

function Ai(e, t, n, r) {
    var i = r.includes(".") ? ti(n, r) : function() {
        return n[r];
    };
    if (j(e)) {
        var o = t[e];
        M(o) && Xr(i, o);
    } else if (M(e)) Xr(i, e.bind(n)); else if (D(e)) if (E(e)) e.forEach(function(e) {
        return Ai(e, t, n, r);
    }); else {
        var a = M(e.handler) ? e.handler.bind(n) : t[e.handler];
        M(a) && Xr(i, a, e);
    }
}

function Ii(e) {
    var t, n = e.type, r = n.mixins, i = n.extends, o = e.appContext, a = o.mixins, s = o.optionsCache, c = o.config.optionMergeStrategies, u = s.get(n);
    return u ? t = u : a.length || r || i ? (t = {}, a.length && a.forEach(function(e) {
        return Ti(t, e, c, !0);
    }), Ti(t, n, c)) : t = n, D(n) && s.set(n, t), t;
}

function Ti(e, t, n) {
    var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], i = t.mixins, o = t.extends;
    for (var a in o && Ti(e, o, n, !0), i && i.forEach(function(t) {
        return Ti(e, t, n, !0);
    }), t) if (r && "expose" === a) ; else {
        var s = Oi[a] || n && n[a];
        e[a] = s ? s(e[a], t[a]) : t[a];
    }
    return e;
}

var Oi = {
    data: Ci,
    props: Ri,
    emits: Ri,
    methods: Ri,
    computed: Ri,
    beforeCreate: Li,
    created: Li,
    beforeMount: Li,
    mounted: Li,
    beforeUpdate: Li,
    updated: Li,
    beforeDestroy: Li,
    beforeUnmount: Li,
    destroyed: Li,
    unmounted: Li,
    activated: Li,
    deactivated: Li,
    errorCaptured: Li,
    serverPrefetch: Li,
    components: Ri,
    directives: Ri,
    watch: function(e, t) {
        if (!e) return t;
        if (!t) return e;
        var n = I(Object.create(null), e);
        for (var r in t) n[r] = Li(e[r], t[r]);
        return n;
    },
    provide: Ci,
    inject: function(e, t) {
        return Ri(Ei(e), Ei(t));
    }
};

function Ci(e, t) {
    return t ? e ? function() {
        return I(M(e) ? e.call(this, this) : e, M(t) ? t.call(this, this) : t);
    } : t : e;
}

function Ei(e) {
    if (E(e)) {
        for (var t = {}, n = 0; n < e.length; n++) t[e[n]] = e[n];
        return t;
    }
    return e;
}

function Li(e, t) {
    return e ? p(new Set([].concat(e, t))) : t;
}

function Ri(e, t) {
    return e ? I(I(Object.create(null), e), t) : t;
}

function Mi(e, t, n) {
    var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], i = {}, o = {};
    for (var a in e.propsDefaults = Object.create(null), ji(e, t, i, o), e.propsOptions[0]) a in i || (i[a] = void 0);
    n ? e.props = r ? i : cr(i, !1, Rn, er, rr) : e.type.props ? e.props = i : e.props = o, 
    e.attrs = o;
}

function ji(e, t, n, r) {
    var i, o = h(e.propsOptions, 2), a = o[0], s = o[1], c = !1;
    if (t) for (var u in t) if (!H(u)) {
        var f = t[u], l = void 0;
        a && C(a, l = W(u)) ? s && s.includes(l) ? (i || (i = {}))[l] = f : n[l] = f : zr(e.emitsOptions, u) || u in r && f === r[u] || (r[u] = f, 
        c = !0);
    }
    if (s) for (var p = hr(n), d = i || k, v = 0; v < s.length; v++) {
        var g = s[v];
        n[g] = Ui(a, p, g, d[g], e, !C(d, g));
    }
    return c;
}

function Ui(e, t, n, r, i, o) {
    var a = e[n];
    if (null != a) {
        var s = C(a, "default");
        if (s && void 0 === r) {
            var c = a.default;
            if (a.type !== Function && M(c)) {
                var u = i.propsDefaults;
                n in u ? r = u[n] : (Qi(i), r = u[n] = c.call(null, t), Yi());
            } else r = c;
        }
        a[0] && (o && !s ? r = !1 : !a[1] || "" !== r && r !== J(n) || (r = !0));
    }
    return r;
}

function Di(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], r = t.propsCache, i = r.get(e);
    if (i) return i;
    var o = e.props, a = {}, s = [], c = !1;
    if (!M(e)) {
        var u = function(e) {
            c = !0;
            var n = Di(e, t, !0), r = h(n, 2), i = r[0], o = r[1];
            I(a, i), o && s.push.apply(s, p(o));
        };
        !n && t.mixins.length && t.mixins.forEach(u), e.extends && u(e.extends), e.mixins && e.mixins.forEach(u);
    }
    if (!o && !c) return D(e) && r.set(e, b), b;
    if (E(o)) for (var f = 0; f < o.length; f++) {
        var l = W(o[f]);
        Ni(l) && (a[l] = k);
    } else if (o) for (var d in o) {
        var v = W(d);
        if (Ni(v)) {
            var g = o[d], m = a[v] = E(g) || M(g) ? {
                type: g
            } : Object.assign({}, g);
            if (m) {
                var y = Fi(Boolean, m.type), _ = Fi(String, m.type);
                m[0] = y > -1, m[1] = _ < 0 || y < _, (y > -1 || C(m, "default")) && s.push(v);
            }
        }
    }
    var w = [ a, s ];
    return D(e) && r.set(e, w), w;
}

function Ni(e) {
    return "$" !== e[0];
}

function $i(e) {
    var t = e && e.toString().match(/^\s*(function|class) (\w+)/);
    return t ? t[2] : null === e ? "null" : "";
}

function qi(e, t) {
    return $i(e) === $i(t);
}

function Fi(e, t) {
    return E(t) ? t.findIndex(function(t) {
        return qi(t, e);
    }) : M(t) && qi(t, e) ? 0 : -1;
}

function Bi() {
    return {
        app: null,
        config: {
            isNativeTag: x,
            performance: !1,
            globalProperties: {},
            optionMergeStrategies: {},
            errorHandler: void 0,
            warnHandler: void 0,
            compilerOptions: {}
        },
        mixins: [],
        components: {},
        directives: {},
        provides: Object.create(null),
        optionsCache: new WeakMap(),
        propsCache: new WeakMap(),
        emitsCache: new WeakMap()
    };
}

var Hi = 0, Ki = qr;

var Vi = Bi(), Wi = 0;

function zi(e, t, n) {
    var r = e.type, i = (t ? t.appContext : e.appContext) || Vi, o = {
        uid: Wi++,
        vnode: e,
        type: r,
        parent: t,
        appContext: i,
        root: null,
        next: null,
        subTree: null,
        effect: null,
        update: null,
        scope: new tn(!0),
        render: null,
        proxy: null,
        exposed: null,
        exposeProxy: null,
        withProxy: null,
        provides: t ? t.provides : Object.create(i.provides),
        accessCache: null,
        renderCache: [],
        components: null,
        directives: null,
        propsOptions: Di(r, i),
        emitsOptions: Wr(r, i),
        emit: null,
        emitted: null,
        propsDefaults: k,
        inheritAttrs: r.inheritAttrs,
        ctx: k,
        data: k,
        props: k,
        attrs: k,
        slots: k,
        refs: k,
        setupState: k,
        setupContext: null,
        suspense: n,
        suspenseId: n ? n.pendingId : 0,
        asyncDep: null,
        asyncResolved: !1,
        isMounted: !1,
        isUnmounted: !1,
        isDeactivated: !1,
        bc: null,
        c: null,
        bm: null,
        m: null,
        bu: null,
        u: null,
        um: null,
        bum: null,
        da: null,
        a: null,
        rtg: null,
        rtc: null,
        ec: null,
        sp: null
    };
    return o.ctx = {
        _: o
    }, o.root = t ? t.root : o, o.emit = Vr.bind(null, o), e.ce && e.ce(o), o;
}

var Ji = null, Gi = function() {
    return Ji || Jr;
}, Qi = function(e) {
    Ji = e, e.scope.on();
}, Yi = function() {
    Ji && Ji.scope.off(), Ji = null;
};

function Xi(e) {
    return 4 & e.vnode.shapeFlag;
}

var Zi = !1;

function eo(e, t, n) {
    var r = e.type;
    e.render || (e.render = r.render || w), Qi(e), vn(), function(e) {
        var t = Ii(e), n = e.proxy, r = e.ctx;
        Si = !1, t.beforeCreate && Pi(t.beforeCreate, e, "bc");
        var i = t.data, o = t.computed, a = t.methods, s = t.watch, c = t.provide, u = t.inject, f = t.created, l = t.beforeMount, h = t.mounted, p = t.beforeUpdate, d = t.updated, v = t.activated, g = t.deactivated, m = (t.beforeDestroy, 
        t.beforeUnmount), y = (t.destroyed, t.unmounted), _ = t.render, k = t.renderTracked, b = t.renderTriggered, x = t.errorCaptured, S = t.serverPrefetch, P = t.expose, A = t.inheritAttrs, I = t.components, T = t.directives;
        if (t.filters, u && function(e, t) {
            var n = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
            E(e) && (e = Ei(e));
            var r = function() {
                var r, o = e[i];
                yr(r = D(o) ? "default" in o ? Qr(o.from || i, o.default, !0) : Qr(o.from || i) : Qr(o)) && n ? Object.defineProperty(t, i, {
                    enumerable: !0,
                    configurable: !0,
                    get: function() {
                        return r.value;
                    },
                    set: function(e) {
                        return r.value = e;
                    }
                }) : t[i] = r;
            };
            for (var i in e) r();
        }(u, r, null, e.appContext.config.unwrapInjectedRef), a) for (var O in a) {
            var C = a[O];
            M(C) && (r[O] = C.bind(n));
        }
        if (i) {
            var L = i.call(n, n);
            D(L) && (e.data = ar(L));
        }
        if (Si = !0, o) {
            var R = function() {
                var e = o[j], t = M(e) ? e.bind(n, n) : M(e.get) ? e.get.bind(n, n) : w, i = !M(e) && M(e.set) ? e.set.bind(n) : w, a = no({
                    get: t,
                    set: i
                });
                Object.defineProperty(r, j, {
                    enumerable: !0,
                    configurable: !0,
                    get: function() {
                        return a.value;
                    },
                    set: function(e) {
                        return a.value = e;
                    }
                });
            };
            for (var j in o) R();
        }
        if (s) for (var U in s) Ai(s[U], r, n, U);
        if (c) {
            var N = M(c) ? c.call(n) : c;
            Reflect.ownKeys(N).forEach(function(e) {
                !function(e, t) {
                    if (Ji) {
                        var n = Ji.provides, r = Ji.parent && Ji.parent.provides;
                        r === n && (n = Ji.provides = Object.create(r)), n[e] = t, "app" === Ji.type.mpType && Ji.appContext.app.provide(e, t);
                    }
                }(e, N[e]);
            });
        }
        function $(e, t) {
            E(t) ? t.forEach(function(t) {
                return e(t.bind(n));
            }) : t && e(t.bind(n));
        }
        if (f && Pi(f, e, "c"), $(ui, l), $(fi, h), $(li, p), $(hi, d), $(ri, v), $(ii, g), 
        $(yi, x), $(mi, k), $(gi, b), $(pi, m), $(di, y), $(vi, S), E(P)) if (P.length) {
            var q = e.exposed || (e.exposed = {});
            P.forEach(function(e) {
                Object.defineProperty(q, e, {
                    get: function() {
                        return n[e];
                    },
                    set: function(t) {
                        return n[e] = t;
                    }
                });
            });
        } else e.exposed || (e.exposed = {});
        _ && e.render === w && (e.render = _), null != A && (e.inheritAttrs = A), I && (e.components = I), 
        T && (e.directives = T), e.ctx.$onApplyOptions && e.ctx.$onApplyOptions(t, e, n);
    }(e), gn(), Yi();
}

function to(e) {
    if (e.exposed) return e.exposeProxy || (e.exposeProxy = new Proxy(xr(pr(e.exposed)), {
        get: function(t, n) {
            return n in t ? t[n] : e.proxy[n];
        },
        has: function(e, t) {
            return t in e || t in bi;
        }
    }));
}

var no = function(e, t) {
    return function(e, t) {
        var n, r, i = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], o = M(e);
        return o ? (n = e, r = w) : (n = e.get, r = e.set), new Sr(n, r, o || !r, i);
    }(e, 0, Zi);
};

function ro(e) {
    return kr(e);
}

var io, oo, ao = "[object Array]", so = "[object Object]";

function co(e, t) {
    var n = {};
    return function e(t, n) {
        if ((t = ro(t)) === n) return;
        var r = q(t), i = q(n);
        if (r == so && i == so) for (var o in n) {
            var a = t[o];
            void 0 === a ? t[o] = null : e(a, n[o]);
        } else r == ao && i == ao && t.length >= n.length && n.forEach(function(n, r) {
            e(t[r], n);
        });
    }(e, t), function e(t, n, r, i) {
        if ((t = ro(t)) === n) return;
        var o = q(t), a = q(n);
        if (o == so) if (a != so || Object.keys(t).length < Object.keys(n).length) uo(i, r, t); else {
            var s = function(o) {
                var a = ro(t[o]), s = n[o], c = q(a), u = q(s);
                if (c != ao && c != so) a != s && uo(i, ("" == r ? "" : r + ".") + o, a); else if (c == ao) u != ao || a.length < s.length ? uo(i, ("" == r ? "" : r + ".") + o, a) : a.forEach(function(t, n) {
                    e(t, s[n], ("" == r ? "" : r + ".") + o + "[" + n + "]", i);
                }); else if (c == so) if (u != so || Object.keys(a).length < Object.keys(s).length) uo(i, ("" == r ? "" : r + ".") + o, a); else for (var f in a) e(a[f], s[f], ("" == r ? "" : r + ".") + o + "." + f, i);
            };
            for (var c in t) s(c);
        } else o == ao ? a != ao || t.length < n.length ? uo(i, r, t) : t.forEach(function(t, o) {
            e(t, n[o], r + "[" + o + "]", i);
        }) : uo(i, r, t);
    }(e, t, "", n), n;
}

function uo(e, t, n) {
    e[t] = n;
}

function fo(e) {
    var t = e.ctx.__next_tick_callbacks;
    if (t && t.length) {
        var n = t.slice(0);
        t.length = 0;
        for (var r = 0; r < n.length; r++) n[r]();
    }
}

function lo(e, t) {
    var n, r = e.ctx;
    return r.__next_tick_pending || function(e) {
        return Cr.includes(e.update);
    }(e) ? (r.__next_tick_callbacks || (r.__next_tick_callbacks = []), r.__next_tick_callbacks.push(function() {
        t ? Pr(t.bind(e.proxy), e, 14) : n && n(e.proxy);
    }), new Promise(function(e) {
        n = e;
    })) : Dr(t && t.bind(e.proxy));
}

function ho(e) {
    return function e(t, n) {
        var r = f(t = ro(t));
        if ("object" === r && null !== t) {
            var i = n.get(t);
            if (void 0 !== i) return i;
            if (E(t)) {
                var o = t.length;
                i = new Array(o), n.set(t, i);
                for (var a = 0; a < o; a++) i[a] = e(t[a], n);
            } else for (var s in i = {}, n.set(t, i), t) C(t, s) && (i[s] = e(t[s], n));
            return i;
        }
        if ("symbol" !== r) return t;
    }(e, "undefined" != typeof WeakMap ? new WeakMap() : new Map());
}

function po(e, t, n) {
    if (t) {
        t = ho(t);
        var r = e.ctx, i = r.mpType;
        if ("page" === i || "component" === i) {
            t.r0 = 1;
            var o = r.$scope, a = Object.keys(t), s = co(t, n || function(e, t) {
                var n = e.data, r = Object.create(null);
                return t.forEach(function(e) {
                    r[e] = n[e];
                }), r;
            }(o, a));
            Object.keys(s).length ? (r.__next_tick_pending = !0, o.setData(s, function() {
                r.__next_tick_pending = !1, fo(e);
            }), Fr()) : fo(e);
        }
    }
}

function vo(e, t, n) {
    t.appContext.config.globalProperties.$applyOptions(e, t, n);
    var r = e.computed;
    if (r) {
        var i = Object.keys(r);
        if (i.length) {
            var o, a = t.ctx;
            a.$computedKeys || (a.$computedKeys = []), (o = a.$computedKeys).push.apply(o, i);
        }
    }
    delete t.ctx.$onApplyOptions;
}

function go(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = e.setupState, r = e.$templateRefs, i = e.ctx, o = i.$scope, a = i.$mpPlatform;
    if ("mp-alipay" !== a && r && o) {
        if (t) return r.forEach(function(e) {
            return mo(e, null, n);
        });
        var s = "mp-baidu" === a || "mp-toutiao" === a, c = function(e) {
            var t = (o.selectAllComponents(".r") || []).concat(o.selectAllComponents(".r-i-f") || []);
            return e.filter(function(e) {
                var r = function(e, t) {
                    var n = e.find(function(e) {
                        return e && (e.properties || e.props).uI === t;
                    });
                    if (n) {
                        var r = n.$vm;
                        return r ? to(r.$) || r : function(e) {
                            return D(e) && pr(e), e;
                        }(n);
                    }
                    return null;
                }(t, e.i);
                return !(!s || null !== r) || (mo(e, r, n), !1);
            });
        }, u = function() {
            var t = c(r);
            t.length && e.proxy && e.proxy.$scope && e.proxy.$scope.setData({
                r1: 1
            }, function() {
                c(t);
            });
        };
        o._$setRef ? o._$setRef(u) : lo(e, u);
    }
}

function mo(e, t, n) {
    var r = e.r, i = e.f;
    if (M(r)) r(t, {}); else {
        var o = j(r), a = yr(r);
        if (o || a) if (i) {
            if (!a) return;
            E(r.value) || (r.value = []);
            var s = r.value;
            if (-1 === s.indexOf(t)) {
                if (s.push(t), !t) return;
                pi(function() {
                    return T(s, t);
                }, t.$);
            }
        } else o ? C(n, r) && (n[r] = t) : yr(r) && (r.value = t);
    }
}

(oo = io || (io = {})).APP = "app", oo.PAGE = "page", oo.COMPONENT = "component";

var yo = qr;

function _o(e, t) {
    var n = e.component = zi(e, t.parentComponent, null);
    return n.ctx.$onApplyOptions = vo, n.ctx.$children = [], "app" === t.mpType && (n.render = w), 
    t.onBeforeSetup && t.onBeforeSetup(n, t), function(e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
        Zi = t;
        var n = e.vnode.props, r = Xi(e);
        Mi(e, n, r, t);
        var i = r ? function(e, t) {
            var n = e.type;
            e.accessCache = Object.create(null), e.proxy = pr(new Proxy(e.ctx, xi));
            var r = n.setup;
            if (r) {
                var i = e.setupContext = r.length > 1 ? function(e) {
                    var t;
                    return {
                        get attrs() {
                            return t || (t = function(e) {
                                return new Proxy(e.attrs, {
                                    get: function(t, n) {
                                        return mn(e, 0, "$attrs"), t[n];
                                    }
                                });
                            }(e));
                        },
                        slots: e.slots,
                        emit: e.emit,
                        expose: function(t) {
                            e.exposed = t || {};
                        }
                    };
                }(e) : null;
                Qi(e), vn();
                var o = Pr(r, e, 0, [ e.props, i ]);
                gn(), Yi(), N(o) ? o.then(Yi, Yi) : function(e, t, n) {
                    M(t) ? e.render = t : D(t) && (e.setupState = xr(t)), eo(e);
                }(e, o);
            } else eo(e);
        }(e) : void 0;
        Zi = !1;
    }(n), t.parentComponent && n.proxy && t.parentComponent.ctx.$children.push(to(n) || n.proxy), 
    function(e) {
        var t = wo.bind(e);
        e.$updateScopedSlots = function() {
            return Dr(function() {
                return Nr(t);
            });
        };
        var n = e.effect = new ln(function() {
            if (e.isMounted) {
                e.next;
                var t = e.bu, n = e.u;
                xo(e, !1), vn(), Fr(), gn(), t && X(t), xo(e, !0), po(e, ko(e)), n && yo(n);
            } else pi(function() {
                go(e, !0);
            }, e), po(e, ko(e));
        }, function() {
            return Nr(e.update);
        }, e.scope), r = e.update = n.run.bind(n);
        r.id = e.uid, xo(e, !0), r();
    }(n), n.proxy;
}

function ko(e) {
    var t, n = e.type, r = e.vnode, i = e.proxy, o = e.withProxy, a = e.props, s = h(e.propsOptions, 1)[0], c = e.slots, u = e.attrs, f = e.emit, l = e.render, p = e.renderCache, d = e.data, v = e.setupState, g = e.ctx, m = e.uid, y = e.appContext.app.config.globalProperties.pruneComponentPropsCache, _ = e.inheritAttrs;
    e.$templateRefs = [], e.$ei = 0, y(m), e.__counter = 0 === e.__counter ? 1 : 0;
    var k = Gr(e);
    try {
        if (4 & r.shapeFlag) {
            bo(_, a, s, u);
            var b = o || i;
            t = l.call(b, b, p, a, v, d, g);
        } else {
            bo(_, a, s, n.props ? u : function(e) {
                var t;
                for (var n in e) ("class" === n || "style" === n || P(n)) && ((t || (t = {}))[n] = e[n]);
                return t;
            }(u));
            var w = n;
            t = w.length > 1 ? w(a, {
                attrs: u,
                slots: c,
                emit: f
            }) : w(a, null);
        }
    } catch (n) {
        n = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(n);
        Ir(n, e, 1), t = !1;
    }
    return go(e), Gr(k), t;
}

function bo(e, t, n, r) {
    if (t && r && !1 !== e) {
        var i = Object.keys(r).filter(function(e) {
            return "class" !== e && "style" !== e;
        });
        if (!i.length) return;
        n && i.some(A) ? i.forEach(function(e) {
            A(e) && e.slice(9) in n || (t[e] = r[e]);
        }) : i.forEach(function(e) {
            return t[e] = r[e];
        });
    }
}

function wo() {
    var e = this.$scopedSlotsData;
    if (e && 0 !== e.length) {
        var t = this.ctx.$scope, n = t.data, r = Object.create(null);
        e.forEach(function(e) {
            var t = e.path, i = e.index, o = e.data, a = ne(n, t), s = j(i) ? "".concat(t, ".").concat(i) : "".concat(t, "[").concat(i, "]");
            if (void 0 === a || void 0 === a[i]) r[s] = o; else {
                var c = co(o, a[i]);
                Object.keys(c).forEach(function(e) {
                    r[s + "." + e] = c[e];
                });
            }
        }), e.length = 0, Object.keys(r).length && t.setData(r);
    }
}

function xo(e, t) {
    var n = e.effect, r = e.update;
    n.allowRecurse = r.allowRecurse = t;
}

var So, Po = function(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
    M(e) || (e = Object.assign({}, e)), null == t || D(t) || (t = null);
    var n = Bi(), r = new Set(), i = n.app = {
        _uid: Hi++,
        _component: e,
        _props: t,
        _container: null,
        _context: n,
        _instance: null,
        version: "3.2.47",
        get config() {
            return n.config;
        },
        set config(e) {},
        use: function(e) {
            for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
            return r.has(e) || (e && M(e.install) ? (r.add(e), e.install.apply(e, [ i ].concat(n))) : M(e) && (r.add(e), 
            e.apply(void 0, [ i ].concat(n)))), i;
        },
        mixin: function(e) {
            return n.mixins.includes(e) || n.mixins.push(e), i;
        },
        component: function(e, t) {
            return t ? (n.components[e] = t, i) : n.components[e];
        },
        directive: function(e, t) {
            return t ? (n.directives[e] = t, i) : n.directives[e];
        },
        mount: function() {},
        unmount: function() {},
        provide: function(e, t) {
            return n.provides[e] = t, i;
        }
    };
    return i;
};

function Ao(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
    ("undefined" != typeof window ? window : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof my ? my : void 0).__VUE__ = !0;
    var n = Po(e, t), r = n._context;
    r.config.globalProperties.$nextTick = function(e) {
        return lo(this.$, e);
    };
    var i = function(e) {
        return e.appContext = r, e.shapeFlag = 6, e;
    }, o = function(e, t) {
        return _o(i(e), t);
    }, a = function(e) {
        return e && function(e) {
            var t = e.bum, n = e.scope, r = e.update, i = e.um;
            t && X(t), n.stop(), r && (r.active = !1), i && yo(i), yo(function() {
                e.isUnmounted = !0;
            });
        }(e.$);
    };
    return n.mount = function() {
        e.render = w;
        var t = _o(i({
            type: e
        }), {
            mpType: io.APP,
            mpInstance: null,
            parentComponent: null,
            slots: [],
            props: null
        });
        return n._instance = t.$, t.$app = n, t.$createComponent = o, t.$destroyComponent = a, 
        r.$appInstance = t, t;
    }, n.unmount = function() {}, n;
}

function Io(e, t, n, r) {
    M(t) && si(e, t.bind(n), r);
}

function To(e, t, n) {
    !function(e, t, n) {
        var r = e.mpType || n.$mpType;
        r && "component" !== r && Object.keys(e).forEach(function(r) {
            if (fe(r, e[r], !1)) {
                var i = e[r];
                E(i) ? i.forEach(function(e) {
                    return Io(r, e, n, t);
                }) : Io(r, i, n, t);
            }
        });
    }(e, t, n);
}

function Oo(e, t, n) {
    return e[t] = n;
}

function Co(e) {
    for (var t = this[e], n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i];
    return t ? t.apply(void 0, r) : (console.error("method ".concat(e, " not found")), 
    null);
}

function Eo(e) {
    return function(t, n, r) {
        if (!n) throw t;
        var i = e._instance;
        if (!i || !i.proxy) throw t;
        i.proxy.$callHook("onError", t);
    };
}

function Lo(e, t) {
    return e ? p(new Set([].concat(e, t))) : t;
}

var Ro = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Mo = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;

function jo() {
    var e, t, n = en.getStorageSync("uni_id_token") || "", r = n.split(".");
    if (!n || 3 !== r.length) return {
        uid: null,
        role: [],
        permission: [],
        tokenExpired: 0
    };
    try {
        e = JSON.parse((t = r[1], decodeURIComponent(So(t).split("").map(function(e) {
            return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
        }).join(""))));
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        throw new Error("获取当前用户信息出错，详细错误信息为：" + e.message);
    }
    return e.tokenExpired = 1e3 * e.exp, delete e.exp, delete e.iat, e;
}

So = "function" != typeof atob ? function(e) {
    if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Mo.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
    var t;
    e += "==".slice(2 - (3 & e.length));
    for (var n, r, i = "", o = 0; o < e.length; ) t = Ro.indexOf(e.charAt(o++)) << 18 | Ro.indexOf(e.charAt(o++)) << 12 | (n = Ro.indexOf(e.charAt(o++))) << 6 | (r = Ro.indexOf(e.charAt(o++))), 
    i += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === r ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
    return i;
} : atob;

var Uo = Object.create(null);

function Do(e) {
    delete Uo[e];
}

function No(e) {
    if (e) {
        var t = e.split(","), n = h(t, 2), r = n[0], i = n[1];
        return Uo[r] ? Uo[r][parseInt(i)] : void 0;
    }
}

var $o = {
    install: function(e) {
        (function(e) {
            var t, n = e._context.config;
            n.errorHandler = he(e, Eo), t = n.optionMergeStrategies, ce.forEach(function(e) {
                t[e] = Lo;
            });
            var r = n.globalProperties;
            !function(e) {
                e.uniIDHasRole = function(e) {
                    return jo().role.indexOf(e) > -1;
                }, e.uniIDHasPermission = function(e) {
                    var t = jo().permission;
                    return this.uniIDHasRole("admin") || t.indexOf(e) > -1;
                }, e.uniIDTokenValid = function() {
                    return jo().tokenExpired > Date.now();
                };
            }(r), r.$set = Oo, r.$applyOptions = To, r.$callMethod = Co, en.invokeCreateVueAppHook(e);
        })(e), e.config.globalProperties.pruneComponentPropsCache = Do;
        var t = e.mount;
        e.mount = function(n) {
            var r = t.call(e, n), i = function() {
                var e = "createApp";
                return "undefined" != typeof global ? global[e] : "undefined" != typeof my ? my[e] : void 0;
            }();
            return i ? i(r) : "undefined" != typeof createMiniProgramApp && createMiniProgramApp(r), 
            r;
        };
    }
};

var qo = [ "tap", "longpress", "longtap", "transitionend", "animationstart", "animationiteration", "animationend", "touchforcechange" ];

function Fo(e) {
    return j(e) ? e : function(e) {
        var t = "";
        if (!e || j(e)) return t;
        for (var n in e) t += "".concat(n.startsWith("--") ? n : J(n), ":").concat(e[n], ";");
        return t;
    }(function e(t) {
        if (E(t)) {
            for (var n = {}, r = 0; r < t.length; r++) {
                var i = t[r], o = j(i) ? y(i) : e(i);
                if (o) for (var a in o) n[a] = o[a];
            }
            return n;
        }
        return j(t) || D(t) ? t : void 0;
    }(e));
}

var Bo = [ "createSelectorQuery", "createIntersectionObserver", "selectAllComponents", "selectComponent" ];

function Ho(e, t) {
    var n = e.ctx;
    n.mpType = t.mpType, n.$mpType = t.mpType, n.$mpPlatform = "mp-weixin", n.$scope = t.mpInstance, 
    n.$mp = {}, n._self = {}, e.slots = {}, E(t.slots) && t.slots.length && (t.slots.forEach(function(t) {
        e.slots[t] = !0;
    }), e.slots.d && (e.slots.default = !0)), n.getOpenerEventChannel = function() {
        return t.mpInstance.getOpenerEventChannel();
    }, n.$hasHook = Ko, n.$callHook = Vo, e.emit = function(e, t) {
        return function(n) {
            for (var r = t.$scope, i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) o[a - 1] = arguments[a];
            if (r && n) {
                var s = {
                    __args__: o
                };
                r.triggerEvent(n, s);
            }
            return e.apply(this, [ n ].concat(o));
        };
    }(e.emit, n);
}

function Ko(e) {
    var t = this.$[e];
    return !(!t || !t.length);
}

function Vo(e, t) {
    "mounted" === e && (Vo.call(this, "bm"), this.$.isMounted = !0, e = "m");
    var n = this.$[e];
    return n && function(e, t) {
        for (var n, r = 0; r < e.length; r++) n = e[r](t);
        return n;
    }(n, t);
}

var Wo = [ "onLoad", "onShow", "onHide", "onUnload", "onResize", "onTabItemTap", "onReachBottom", "onPullDownRefresh", "onAddToFavorites" ];

function zo(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : new Set();
    if (e) {
        Object.keys(e).forEach(function(n) {
            fe(n, e[n]) && t.add(n);
        });
        var n = e.extends, r = e.mixins;
        r && r.forEach(function(e) {
            return zo(e, t);
        }), n && zo(n, t);
    }
    return t;
}

function Jo(e, t, n) {
    -1 !== n.indexOf(t) || C(e, t) || (e[t] = function(e) {
        return this.$vm && this.$vm.$callHook(t, e);
    });
}

var Go = [ "onReady" ];

function Qo(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Go;
    t.forEach(function(t) {
        return Jo(e, t, n);
    });
}

function Yo(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Go;
    zo(t).forEach(function(t) {
        return Jo(e, t, n);
    });
}

var Xo = te(function() {
    var e = [], t = M(getApp) && getApp({
        allowDefault: !0
    });
    if (t && t.$vm && t.$vm.$) {
        var n = t.$vm.$.appContext.mixins;
        if (E(n)) {
            var r = Object.keys(ue);
            n.forEach(function(t) {
                r.forEach(function(n) {
                    C(t, n) && !e.includes(n) && e.push(n);
                });
            });
        }
    }
    return e;
}), Zo = [ "onShow", "onHide", "onError", "onThemeChange", "onPageNotFound", "onUnhandledRejection" ];

function ea(e, t) {
    var n = e.$, r = {
        globalData: e.$options && e.$options.globalData || {},
        $vm: e,
        onLaunch: function(t) {
            this.$vm = e;
            var r = n.ctx;
            this.$vm && r.$scope || (Ho(n, {
                mpType: "app",
                mpInstance: this,
                slots: []
            }), r.globalData = this.globalData, e.$callHook("onLaunch", t));
        }
    };
    n.onError && (n.appContext.config.errorHandler = function(t) {
        e.$callHook("onError", t);
    }), function(e) {
        var t = function(e) {
            return function(e, t) {
                return yr(e) ? e : new _r(e, !1);
            }(e);
        }(be(wx.getSystemInfoSync().language) || "en");
        Object.defineProperty(e, "$locale", {
            get: function() {
                return t.value;
            },
            set: function(e) {
                t.value = e;
            }
        });
    }(e);
    var i = e.$.type;
    Qo(r, Zo), Yo(r, i);
    var o = i.methods;
    return o && I(r, o), t && t.parse(r), r;
}

function ta(e, t) {
    if (M(e.onLaunch)) {
        var n = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
        e.onLaunch(n);
    }
    M(e.onShow) && wx.onAppShow && wx.onAppShow(function(e) {
        t.$callHook("onShow", e);
    }), M(e.onHide) && wx.onAppHide && wx.onAppHide(function(e) {
        t.$callHook("onHide", e);
    });
}

var na = [ "externalClasses" ], ra = /_(.*)_worklet_factory_/;

var ia = [ "eO", "uR", "uRIF", "uI", "uT", "uP", "uS" ];

function oa(e) {
    e.properties || (e.properties = {}), I(e.properties, function(e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = {};
        return t || (ia.forEach(function(e) {
            n[e] = {
                type: null,
                value: ""
            };
        }), n.uS = {
            type: null,
            value: [],
            observer: function(e) {
                var t = Object.create(null);
                e && e.forEach(function(e) {
                    t[e] = !0;
                }), this.setData({
                    $slots: t
                });
            }
        }), e.behaviors && e.behaviors.includes("wx://form-field") && (e.properties && e.properties.name || (n.name = {
            type: null,
            value: ""
        }), e.properties && e.properties.value || (n.value = {
            type: null,
            value: ""
        })), n;
    }(e), function(e) {
        var t = {};
        return e && e.virtualHost && (t.virtualHostStyle = {
            type: null,
            value: ""
        }, t.virtualHostClass = {
            type: null,
            value: ""
        }), t;
    }(e.options));
}

var aa, sa, ca = [ String, Number, Boolean, Object, Array, null ];

function ua(e, t) {
    var n = function(e, t) {
        return E(e) && 1 === e.length ? e[0] : e;
    }(e);
    return -1 !== ca.indexOf(n) ? n : null;
}

function fa(e, t) {
    return (t ? function(e) {
        var t = {};
        return F(e) && Object.keys(e).forEach(function(n) {
            -1 === ia.indexOf(n) && (t[n] = e[n]);
        }), t;
    }(e) : No(e.uP)) || {};
}

function la(e) {
    e.observers || (e.observers = {}), e.observers.uP = function() {
        var e = this.properties.uP;
        e && (this.$vm ? function(e, t) {
            var n, r = hr(t.props), i = No(e) || {};
            ha(r, i) && (function(e, t, n, r) {
                var i = e.props, o = e.attrs, a = e.vnode.patchFlag, s = hr(i), c = h(e.propsOptions, 1)[0], u = !1;
                if (!(a > 0) || 16 & a) {
                    var f;
                    for (var l in ji(e, t, i, o) && (u = !0), s) t && (C(t, l) || (f = J(l)) !== l && C(t, f)) || (c ? !n || void 0 === n[l] && void 0 === n[f] || (i[l] = Ui(c, s, l, void 0, e, !0)) : delete i[l]);
                    if (o !== s) for (var p in o) t && C(t, p) || (delete o[p], u = !0);
                } else if (8 & a) for (var d = e.vnode.dynamicProps, v = 0; v < d.length; v++) {
                    var g = d[v];
                    if (!zr(e.emitsOptions, g)) {
                        var m = t[g];
                        if (c) if (C(o, g)) m !== o[g] && (o[g] = m, u = !0); else {
                            var y = W(g);
                            i[y] = Ui(c, s, y, m, e, !1);
                        } else m !== o[g] && (o[g] = m, u = !0);
                    }
                }
                u && _n(e, "set", "$attrs");
            }(t, i, r), n = t.update, Cr.indexOf(n) > -1 && function(e) {
                var t = Cr.indexOf(e);
                t > Er && Cr.splice(t, 1);
            }(t.update), t.update());
        }(e, this.$vm.$) : "m" === this.properties.uT && function(e, t) {
            var n = t.properties, r = No(e) || {};
            ha(n, r, !1) && t.setData(r);
        }(e, this));
    };
}

function ha(e, t) {
    var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], r = Object.keys(t);
    if (n && r.length !== Object.keys(e).length) return !0;
    for (var i = 0; i < r.length; i++) {
        var o = r[i];
        if (t[o] !== e[o]) return !0;
    }
    return !1;
}

function pa(e, t) {
    var n = t.parse, r = t.mocks, i = t.isPage, o = t.initRelation, a = t.handleLink, s = t.initLifetimes;
    e = e.default || e;
    var c = {
        multipleSlots: !0,
        addGlobalClass: !0,
        pureDataPattern: /^uP$/
    };
    E(e.mixins) && e.mixins.forEach(function(e) {
        D(e.options) && I(c, e.options);
    }), e.options && I(c, e.options);
    var u, f, l, h, p = {
        options: c,
        lifetimes: s({
            mocks: r,
            isPage: i,
            initRelation: o,
            vueOptions: e
        }),
        pageLifetimes: {
            show: function() {
                this.$vm && this.$vm.$callHook("onPageShow");
            },
            hide: function() {
                this.$vm && this.$vm.$callHook("onPageHide");
            },
            resize: function(e) {
                this.$vm && this.$vm.$callHook("onPageResize", e);
            }
        },
        methods: {
            __l: a
        }
    };
    return function(e, t) {
        e.data = {}, e.behaviors = function(e) {
            var t = e.behaviors, n = e.props;
            n || (e.props = n = []);
            var r = [];
            return E(t) && t.forEach(function(e) {
                r.push(e.replace("uni://", "wx://")), "uni://form-field" === e && (E(n) ? (n.push("name"), 
                n.push("modelValue")) : (n.name = {
                    type: String,
                    default: ""
                }, n.modelValue = {
                    type: [ String, Number, Boolean, Array, Object, Date ],
                    default: ""
                }));
            }), r;
        }(t);
    }(p, e), oa(p), la(p), function(e, t) {
        na.forEach(function(n) {
            C(t, n) && (e[n] = t[n]);
        });
    }(p, e), u = p.methods, f = e.wxsCallMethods, E(f) && f.forEach(function(e) {
        u[e] = function(t) {
            return this.$vm[e](t);
        };
    }), l = p.methods, (h = e.methods) && Object.keys(h).forEach(function(e) {
        var t = e.match(ra);
        if (t) {
            var n = t[1];
            l[e] = h[e], l[n] = h[n];
        }
    }), n && n(p, {
        handleLink: a
    }), p;
}

function da() {
    return getApp().$vm;
}

var va = Page, ga = Component;

function ma(e) {
    var t = e.triggerEvent, n = function(n) {
        for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) i[o - 1] = arguments[o];
        return t.apply(e, [ (a = n, W(a.replace(ee, "-"))) ].concat(i));
        var a;
    };
    try {
        e.triggerEvent = n;
    } catch (t) {
        t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
        e._triggerEvent = n;
    }
}

function ya(e, t, n) {
    var r = t[e];
    t[e] = r ? function() {
        for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
        return ma(this), r.apply(this, t);
    } : function() {
        ma(this);
    };
}

Page = function(e) {
    return ya("onLoad", e), va(e);
}, Component = function(e) {
    return ya("created", e), e.properties && e.properties.uP || (oa(e), la(e)), ga(e);
};

var _a, ka = Object.freeze({
    __proto__: null,
    handleLink: function(e) {
        var t, n = e.detail || e.value, r = n.vuePid;
        r && (t = function e(t, n) {
            for (var r, i = t.$children, o = i.length - 1; o >= 0; o--) {
                var a = i[o];
                if (a.$scope._$vueId === n) return a;
            }
            for (var s = i.length - 1; s >= 0; s--) if (r = e(i[s], n)) return r;
        }(this.$vm, r)), t || (t = this.$vm), n.parent = t;
    },
    initLifetimes: function(e) {
        var t = e.mocks, n = e.isPage, r = e.initRelation, i = e.vueOptions;
        return {
            attached: function() {
                var e = this.properties;
                !function(e, t) {
                    if (e) {
                        var n = e.split(","), r = n.length;
                        1 === r ? t._$vueId = n[0] : 2 === r && (t._$vueId = n[0], t._$vuePid = n[1]);
                    }
                }(e.uI, this);
                var o = {
                    vuePid: this._$vuePid
                };
                r(this, o);
                var a = this, s = n(a), c = e;
                this.$vm = function(e, t) {
                    aa || (aa = da().$createComponent);
                    var n = aa(e, t);
                    return to(n.$) || n;
                }({
                    type: i,
                    props: fa(c, s)
                }, {
                    mpType: s ? "page" : "component",
                    mpInstance: a,
                    slots: e.uS || {},
                    parentComponent: o.parent && o.parent.$,
                    onBeforeSetup: function(e, n) {
                        !function(e, t) {
                            Object.defineProperty(e, "refs", {
                                get: function() {
                                    var e = {};
                                    return function(e, t, n) {
                                        e.selectAllComponents(".r").forEach(function(e) {
                                            var t = e.properties.uR;
                                            n[t] = e.$vm || e;
                                        });
                                    }(t, 0, e), t.selectAllComponents(".r-i-f").forEach(function(t) {
                                        var n = t.properties.uR;
                                        n && (e[n] || (e[n] = []), e[n].push(t.$vm || t));
                                    }), e;
                                }
                            });
                        }(e, a), function(e, t, n) {
                            var r = e.ctx;
                            n.forEach(function(n) {
                                C(t, n) && (e[n] = r[n] = t[n]);
                            });
                        }(e, a, t), function(e, t) {
                            Ho(e, t);
                            var n = e.ctx;
                            Bo.forEach(function(e) {
                                n[e] = function() {
                                    for (var t = n.$scope, r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o];
                                    if (t && t[e]) return t[e].apply(t, i);
                                };
                            });
                        }(e, n);
                    }
                }), s || function(e) {
                    var t = e.$options;
                    E(t.behaviors) && t.behaviors.includes("uni://form-field") && e.$watch("modelValue", function() {
                        e.$scope && e.$scope.setData({
                            name: e.name,
                            value: e.modelValue
                        });
                    }, {
                        immediate: !0
                    });
                }(this.$vm);
            },
            ready: function() {
                this.$vm && (this.$vm.$callHook("mounted"), this.$vm.$callHook("onReady"));
            },
            detached: function() {
                var e;
                this.$vm && (Do(this.$vm.$.uid), e = this.$vm, sa || (sa = da().$destroyComponent), 
                sa(e));
            }
        };
    },
    initRelation: function(e, t) {
        e.triggerEvent("__l", t);
    },
    isPage: function(e) {
        return !!e.route;
    },
    mocks: [ "__route__", "__wxExparserNodeId__", "__wxWebviewId__" ]
}), ba = (_a = ka, function(e) {
    return Component(function(e, t) {
        var n = t.parse, r = t.mocks, i = t.isPage, o = t.initRelation, a = t.handleLink, s = pa(e, {
            mocks: r,
            isPage: i,
            initRelation: o,
            handleLink: a,
            initLifetimes: t.initLifetimes
        });
        !function(e, t) {
            var n = e.properties;
            E(t) ? t.forEach(function(e) {
                n[e] = {
                    type: String,
                    value: ""
                };
            }) : F(t) && Object.keys(t).forEach(function(e) {
                var r = t[e];
                if (F(r)) {
                    var i = r.default;
                    M(i) && (i = i());
                    var o = r.type;
                    r.type = ua(o), n[e] = {
                        type: r.type,
                        value: i
                    };
                } else n[e] = {
                    type: ua(r)
                };
            });
        }(s, (e.default || e).props);
        var c = s.methods;
        return c.onLoad = function(e) {
            var t;
            return this.options = e, this.$page = {
                fullPath: (t = this.route + oe(e), function(e) {
                    return 0 === e.indexOf("/");
                }(t) ? t : "/" + t)
            }, this.$vm && this.$vm.$callHook("onLoad", e);
        }, Qo(c, Wo), Yo(c, e), function(e, t) {
            t && Object.keys(ue).forEach(function(n) {
                t & ue[n] && Jo(e, n, []);
            });
        }(c, e.__runtimeHooks), Qo(c, Xo()), n && n(s, {
            handleLink: a
        }), s;
    }(e, _a));
}), wa = function(e) {
    return function(t) {
        return Component(pa(t, e));
    };
}(ka), xa = function(e) {
    ta(ea(e, void 0), e);
}, Sa = function(e) {
    var t = ea(e, void 0), n = M(getApp) && getApp({
        allowDefault: !0
    });
    if (n) {
        e.$.ctx.$scope = n;
        var r = n.globalData;
        r && Object.keys(t.globalData).forEach(function(e) {
            C(r, e) || (r[e] = t.globalData[e]);
        }), Object.keys(t).forEach(function(e) {
            C(n, e) || (n[e] = t[e]);
        }), ta(t, e);
    }
};

function Pa(e, t) {
    Object.keys(e).forEach(function(n) {
        return t(e[n], n);
    });
}

function Aa(e, t, n) {
    return t.indexOf(e) < 0 && (n && n.prepend ? t.unshift(e) : t.push(e)), function() {
        var n = t.indexOf(e);
        n > -1 && t.splice(n, 1);
    };
}

function Ia(e, t) {
    e._actions = Object.create(null), e._mutations = Object.create(null), e._wrappedGetters = Object.create(null), 
    e._modulesNamespaceMap = Object.create(null);
    var n = e.state;
    Oa(e, n, [], e._modules.root, !0), Ta(e, n, t);
}

function Ta(e, t, n) {
    var r = e._state, i = e._scope;
    e.getters = {}, e._makeLocalGettersCache = Object.create(null);
    var o = e._wrappedGetters, a = {}, s = {}, c = new tn(!0);
    c.run(function() {
        Pa(o, function(t, n) {
            a[n] = function(e, t) {
                return function() {
                    return e(t);
                };
            }(t, e), s[n] = no(function() {
                return a[n]();
            }), Object.defineProperty(e.getters, n, {
                get: function() {
                    return s[n].value;
                },
                enumerable: !0
            });
        });
    }), e._state = ar({
        data: t
    }), e._scope = c, e.strict && function(e) {
        Xr(function() {
            return e._state.data;
        }, function() {}, {
            deep: !0,
            flush: "sync"
        });
    }(e), r && n && e._withCommit(function() {
        r.data = null;
    }), i && i.stop();
}

function Oa(e, t, n, r, i) {
    var o = !n.length, a = e._modules.getNamespace(n);
    if (r.namespaced && (e._modulesNamespaceMap[a], e._modulesNamespaceMap[a] = r), 
    !o && !i) {
        var s = Ca(t, n.slice(0, -1)), c = n[n.length - 1];
        e._withCommit(function() {
            s[c] = r.state;
        });
    }
    var u = r.context = function(e, t, n) {
        var r = "" === t, i = {
            dispatch: r ? e.dispatch : function(n, r, i) {
                var o = Ea(n, r, i), a = o.payload, s = o.options, c = o.type;
                return s && s.root || (c = t + c), e.dispatch(c, a);
            },
            commit: r ? e.commit : function(n, r, i) {
                var o = Ea(n, r, i), a = o.payload, s = o.options, c = o.type;
                s && s.root || (c = t + c), e.commit(c, a, s);
            }
        };
        return Object.defineProperties(i, {
            getters: {
                get: r ? function() {
                    return e.getters;
                } : function() {
                    return function(e, t) {
                        if (!e._makeLocalGettersCache[t]) {
                            var n = {}, r = t.length;
                            Object.keys(e.getters).forEach(function(i) {
                                if (i.slice(0, r) === t) {
                                    var o = i.slice(r);
                                    Object.defineProperty(n, o, {
                                        get: function() {
                                            return e.getters[i];
                                        },
                                        enumerable: !0
                                    });
                                }
                            }), e._makeLocalGettersCache[t] = n;
                        }
                        return e._makeLocalGettersCache[t];
                    }(e, t);
                }
            },
            state: {
                get: function() {
                    return Ca(e.state, n);
                }
            }
        }), i;
    }(e, a, n);
    r.forEachMutation(function(t, n) {
        !function(e, t, n, r) {
            (e._mutations[t] || (e._mutations[t] = [])).push(function(t) {
                n.call(e, r.state, t);
            });
        }(e, a + n, t, u);
    }), r.forEachAction(function(t, n) {
        var r = t.root ? n : a + n, i = t.handler || t;
        !function(e, t, n, r) {
            (e._actions[t] || (e._actions[t] = [])).push(function(t) {
                var i, o = n.call(e, {
                    dispatch: r.dispatch,
                    commit: r.commit,
                    getters: r.getters,
                    state: r.state,
                    rootGetters: e.getters,
                    rootState: e.state
                }, t);
                return (i = o) && "function" == typeof i.then || (o = Promise.resolve(o)), e._devtoolHook ? o.catch(function(t) {
                    throw e._devtoolHook.emit("vuex:error", t), t;
                }) : o;
            });
        }(e, r, i, u);
    }), r.forEachGetter(function(t, n) {
        !function(e, t, n, r) {
            e._wrappedGetters[t] || (e._wrappedGetters[t] = function(e) {
                return n(r.state, r.getters, e.state, e.getters);
            });
        }(e, a + n, t, u);
    }), r.forEachChild(function(r, o) {
        Oa(e, t, n.concat(o), r, i);
    });
}

function Ca(e, t) {
    return t.reduce(function(e, t) {
        return e[t];
    }, e);
}

function Ea(e, t, n) {
    var r;
    return null !== (r = e) && "object" == f(r) && e.type && (n = t, t = e, e = e.type), 
    {
        type: e,
        payload: t,
        options: n
    };
}

wx.createApp = global.createApp = function(e) {
    return App(ea(e, void 0));
}, wx.createPage = ba, wx.createComponent = wa, wx.createPluginApp = global.createPluginApp = xa, 
wx.createSubpackageApp = global.createSubpackageApp = Sa;

var La = function(e, t) {
    this.runtime = t, this._children = Object.create(null), this._rawModule = e;
    var n = e.state;
    this.state = ("function" == typeof n ? n() : n) || {};
}, Ra = {
    namespaced: {
        configurable: !0
    }
};

Ra.namespaced.get = function() {
    return !!this._rawModule.namespaced;
}, La.prototype.addChild = function(e, t) {
    this._children[e] = t;
}, La.prototype.removeChild = function(e) {
    delete this._children[e];
}, La.prototype.getChild = function(e) {
    return this._children[e];
}, La.prototype.hasChild = function(e) {
    return e in this._children;
}, La.prototype.update = function(e) {
    this._rawModule.namespaced = e.namespaced, e.actions && (this._rawModule.actions = e.actions), 
    e.mutations && (this._rawModule.mutations = e.mutations), e.getters && (this._rawModule.getters = e.getters);
}, La.prototype.forEachChild = function(e) {
    Pa(this._children, e);
}, La.prototype.forEachGetter = function(e) {
    this._rawModule.getters && Pa(this._rawModule.getters, e);
}, La.prototype.forEachAction = function(e) {
    this._rawModule.actions && Pa(this._rawModule.actions, e);
}, La.prototype.forEachMutation = function(e) {
    this._rawModule.mutations && Pa(this._rawModule.mutations, e);
}, Object.defineProperties(La.prototype, Ra);

var Ma = function(e) {
    this.register([], e, !1);
};

Ma.prototype.get = function(e) {
    return e.reduce(function(e, t) {
        return e.getChild(t);
    }, this.root);
}, Ma.prototype.getNamespace = function(e) {
    var t = this.root;
    return e.reduce(function(e, n) {
        return e + ((t = t.getChild(n)).namespaced ? n + "/" : "");
    }, "");
}, Ma.prototype.update = function(e) {
    !function e(t, n, r) {
        if (n.update(r), r.modules) for (var i in r.modules) {
            if (!n.getChild(i)) return;
            e(t.concat(i), n.getChild(i), r.modules[i]);
        }
    }([], this.root, e);
}, Ma.prototype.register = function(e, t, n) {
    var r = this;
    void 0 === n && (n = !0);
    var i = new La(t, n);
    0 === e.length ? this.root = i : this.get(e.slice(0, -1)).addChild(e[e.length - 1], i), 
    t.modules && Pa(t.modules, function(t, i) {
        r.register(e.concat(i), t, n);
    });
}, Ma.prototype.unregister = function(e) {
    var t = this.get(e.slice(0, -1)), n = e[e.length - 1], r = t.getChild(n);
    r && r.runtime && t.removeChild(n);
}, Ma.prototype.isRegistered = function(e) {
    var t = this.get(e.slice(0, -1)), n = e[e.length - 1];
    return !!t && t.hasChild(n);
};

var ja = function(e) {
    var t = this;
    void 0 === e && (e = {});
    var n = e.plugins;
    void 0 === n && (n = []);
    var r = e.strict;
    void 0 === r && (r = !1);
    var i = e.devtools;
    this._committing = !1, this._actions = Object.create(null), this._actionSubscribers = [], 
    this._mutations = Object.create(null), this._wrappedGetters = Object.create(null), 
    this._modules = new Ma(e), this._modulesNamespaceMap = Object.create(null), this._subscribers = [], 
    this._makeLocalGettersCache = Object.create(null), this._scope = null, this._devtools = i;
    var o = this, a = this.dispatch, s = this.commit;
    this.dispatch = function(e, t) {
        return a.call(o, e, t);
    }, this.commit = function(e, t, n) {
        return s.call(o, e, t, n);
    }, this.strict = r;
    var c = this._modules.root.state;
    Oa(this, c, [], this._modules.root), Ta(this, c), n.forEach(function(e) {
        return e(t);
    });
}, Ua = {
    state: {
        configurable: !0
    }
};

ja.prototype.install = function(e, t) {
    e.provide(t || "store", this), e.config.globalProperties.$store = this, void 0 !== this._devtools && this._devtools;
}, Ua.state.get = function() {
    return this._state.data;
}, Ua.state.set = function(e) {}, ja.prototype.commit = function(e, t, n) {
    var r = this, i = Ea(e, t, n), o = i.type, a = i.payload, s = {
        type: o,
        payload: a
    }, c = this._mutations[o];
    c && (this._withCommit(function() {
        c.forEach(function(e) {
            e(a);
        });
    }), this._subscribers.slice().forEach(function(e) {
        return e(s, r.state);
    }));
}, ja.prototype.dispatch = function(e, t) {
    var n = this, r = Ea(e, t), i = r.type, o = r.payload, a = {
        type: i,
        payload: o
    }, s = this._actions[i];
    if (s) {
        try {
            this._actionSubscribers.slice().filter(function(e) {
                return e.before;
            }).forEach(function(e) {
                return e.before(a, n.state);
            });
        } catch (e) {}
        var c = s.length > 1 ? Promise.all(s.map(function(e) {
            return e(o);
        })) : s[0](o);
        return new Promise(function(e, t) {
            c.then(function(t) {
                try {
                    n._actionSubscribers.filter(function(e) {
                        return e.after;
                    }).forEach(function(e) {
                        return e.after(a, n.state);
                    });
                } catch (e) {}
                e(t);
            }, function(e) {
                try {
                    n._actionSubscribers.filter(function(e) {
                        return e.error;
                    }).forEach(function(t) {
                        return t.error(a, n.state, e);
                    });
                } catch (e) {}
                t(e);
            });
        });
    }
}, ja.prototype.subscribe = function(e, t) {
    return Aa(e, this._subscribers, t);
}, ja.prototype.subscribeAction = function(e, t) {
    return Aa("function" == typeof e ? {
        before: e
    } : e, this._actionSubscribers, t);
}, ja.prototype.watch = function(e, t, n) {
    var r = this;
    return Xr(function() {
        return e(r.state, r.getters);
    }, t, Object.assign({}, n));
}, ja.prototype.replaceState = function(e) {
    var t = this;
    this._withCommit(function() {
        t._state.data = e;
    });
}, ja.prototype.registerModule = function(e, t, n) {
    void 0 === n && (n = {}), "string" == typeof e && (e = [ e ]), this._modules.register(e, t), 
    Oa(this, this.state, e, this._modules.get(e), n.preserveState), Ta(this, this.state);
}, ja.prototype.unregisterModule = function(e) {
    var t = this;
    "string" == typeof e && (e = [ e ]), this._modules.unregister(e), this._withCommit(function() {
        delete Ca(t.state, e.slice(0, -1))[e[e.length - 1]];
    }), Ia(this);
}, ja.prototype.hasModule = function(e) {
    return "string" == typeof e && (e = [ e ]), this._modules.isRegistered(e);
}, ja.prototype.hotUpdate = function(e) {
    this._modules.update(e), Ia(this, !0);
}, ja.prototype._withCommit = function(e) {
    var t = this._committing;
    this._committing = !0, e(), this._committing = t;
}, Object.defineProperties(ja.prototype, Ua);

var Da = {
    pages: [ {
        path: "pages/index/index",
        style: {
            navigationBarTitleText: "独彩"
        }
    }, {
        path: "pages/index/product",
        style: {
            navigationBarTitleText: "产品",
            enablePullDownRefresh: !0
        }
    }, {
        path: "pages/index/extend",
        style: {
            navigationBarTitleText: "独彩",
            enablePullDownRefresh: !0
        }
    }, {
        path: "pages/index/ucenter",
        style: {
            navigationBarTitleText: "独彩"
        }
    }, {
        path: "pages/ucenter/home/home",
        style: {
            navigationBarTitleText: "用户中心",
            enablePullDownRefresh: !0
        }
    }, {
        path: "pages/ucenter/login/login",
        style: {
            navigationBarTitleText: "用户登录"
        }
    }, {
        path: "pages/ucenter/info/info",
        style: {
            navigationBarTitleText: "用户信息"
        }
    }, {
        path: "pages/ucenter/logout/logout",
        style: {
            navigationBarTitleText: "退出登录"
        }
    }, {
        path: "pages/quality/quality",
        style: {
            navigationBarTitleText: "质保查询"
        }
    }, {
        path: "pages/quality/lists",
        style: {
            navigationBarTitleText: "质保查询"
        }
    }, {
        path: "pages/submit/quality",
        style: {
            navigationBarTitleText: "质保录入"
        }
    }, {
        path: "pages/car/brand",
        style: {
            navigationBarTitleText: "选择品牌"
        }
    }, {
        path: "pages/car/series",
        style: {
            navigationBarTitleText: "选择车型"
        }
    }, {
        path: "pages/car/specs",
        style: {
            navigationBarTitleText: "选择年款"
        }
    }, {
        path: "pages/car/detail",
        style: {
            navigationBarTitleText: "车辆详情"
        }
    }, {
        path: "pages/gallery/gallery",
        style: {
            navigationBarTitleText: "实拍首页"
        }
    }, {
        path: "pages/gallery/category",
        style: {
            navigationBarTitleText: "实拍列表"
        }
    }, {
        path: "pages/gallery/detail",
        style: {
            navigationBarTitleText: "实拍详情"
        }
    }, {
        path: "pages/product/detail",
        style: {
            navigationBarTitleText: "产品详情"
        }
    }, {
        path: "pages/ucenter/quality/quality",
        style: {
            navigationBarTitleText: "我的施工"
        }
    }, {
        path: "pages/single/single",
        style: {
            navigationBarTitleText: "信息页面"
        }
    } ],
    globalStyle: {
        navigationBarTextStyle: "black",
        navigationBarTitleText: "独裁",
        navigationBarBackgroundColor: "#f5f5f5",
        backgroundColor: "#ffffff"
    },
    tabBar: {
        borderStyle: "white",
        backgroundColor: "#0C0A0B",
        color: "#4D4D4D",
        selectedColor: "#aa0000",
        list: [ {
            pagePath: "pages/index/index",
            iconPath: "static/tabbar/index.png",
            selectedIconPath: "static/tabbar/index-active.png",
            text: "首页"
        }, {
            pagePath: "pages/index/product",
            iconPath: "static/tabbar/product.png",
            selectedIconPath: "static/tabbar/product-active.png",
            text: "产品"
        }, {
            pagePath: "pages/index/extend",
            iconPath: "static/tabbar/extend.png",
            selectedIconPath: "static/tabbar/extend-active.png",
            text: "案例"
        }, {
            pagePath: "pages/index/ucenter",
            iconPath: "static/tabbar/ucenter.png",
            selectedIconPath: "static/tabbar/ucenter-active.png",
            text: "质保"
        } ]
    },
    uniIdRouter: {}
};

function Na(e, t, n) {
    return e(n = {
        path: t,
        exports: {},
        require: function(e, t) {
            return function() {
                throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
            }(null == t && n.path);
        }
    }, n.exports), n.exports;
}

var $a = Na(function(e, t) {
    var n;
    e.exports = n = n || function(e, t) {
        var n = Object.create || function() {
            function e() {}
            return function(t) {
                var n;
                return e.prototype = t, n = new e(), e.prototype = null, n;
            };
        }(), r = {}, i = r.lib = {}, o = i.Base = {
            extend: function(e) {
                var t = n(this);
                return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function() {
                    t.$super.init.apply(this, arguments);
                }), t.init.prototype = t, t.$super = this, t;
            },
            create: function() {
                var e = this.extend();
                return e.init.apply(e, arguments), e;
            },
            init: function() {},
            mixIn: function(e) {
                for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
                e.hasOwnProperty("toString") && (this.toString = e.toString);
            },
            clone: function() {
                return this.init.prototype.extend(this);
            }
        }, a = i.WordArray = o.extend({
            init: function(e, t) {
                e = this.words = e || [], this.sigBytes = null != t ? t : 4 * e.length;
            },
            toString: function(e) {
                return (e || c).stringify(this);
            },
            concat: function(e) {
                var t = this.words, n = e.words, r = this.sigBytes, i = e.sigBytes;
                if (this.clamp(), r % 4) for (var o = 0; o < i; o++) {
                    var a = n[o >>> 2] >>> 24 - o % 4 * 8 & 255;
                    t[r + o >>> 2] |= a << 24 - (r + o) % 4 * 8;
                } else for (o = 0; o < i; o += 4) t[r + o >>> 2] = n[o >>> 2];
                return this.sigBytes += i, this;
            },
            clamp: function() {
                var t = this.words, n = this.sigBytes;
                t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
            },
            clone: function() {
                var e = o.clone.call(this);
                return e.words = this.words.slice(0), e;
            },
            random: function(t) {
                for (var n, r = [], i = function(t) {
                    var n = 987654321, r = 4294967295;
                    return function() {
                        var i = ((n = 36969 * (65535 & n) + (n >> 16) & r) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & r) & r;
                        return i /= 4294967296, (i += .5) * (e.random() > .5 ? 1 : -1);
                    };
                }, o = 0; o < t; o += 4) {
                    var s = i(4294967296 * (n || e.random()));
                    n = 987654071 * s(), r.push(4294967296 * s() | 0);
                }
                return new a.init(r, t);
            }
        }), s = r.enc = {}, c = s.Hex = {
            stringify: function(e) {
                for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
                    var o = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
                    r.push((o >>> 4).toString(16)), r.push((15 & o).toString(16));
                }
                return r.join("");
            },
            parse: function(e) {
                for (var t = e.length, n = [], r = 0; r < t; r += 2) n[r >>> 3] |= parseInt(e.substr(r, 2), 16) << 24 - r % 8 * 4;
                return new a.init(n, t / 2);
            }
        }, u = s.Latin1 = {
            stringify: function(e) {
                for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
                    var o = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
                    r.push(String.fromCharCode(o));
                }
                return r.join("");
            },
            parse: function(e) {
                for (var t = e.length, n = [], r = 0; r < t; r++) n[r >>> 2] |= (255 & e.charCodeAt(r)) << 24 - r % 4 * 8;
                return new a.init(n, t);
            }
        }, f = s.Utf8 = {
            stringify: function(e) {
                try {
                    return decodeURIComponent(escape(u.stringify(e)));
                } catch (e) {
                    e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                    throw new Error("Malformed UTF-8 data");
                }
            },
            parse: function(e) {
                return u.parse(unescape(encodeURIComponent(e)));
            }
        }, l = i.BufferedBlockAlgorithm = o.extend({
            reset: function() {
                this._data = new a.init(), this._nDataBytes = 0;
            },
            _append: function(e) {
                "string" == typeof e && (e = f.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
            },
            _process: function(t) {
                var n = this._data, r = n.words, i = n.sigBytes, o = this.blockSize, s = i / (4 * o), c = (s = t ? e.ceil(s) : e.max((0 | s) - this._minBufferSize, 0)) * o, u = e.min(4 * c, i);
                if (c) {
                    for (var f = 0; f < c; f += o) this._doProcessBlock(r, f);
                    var l = r.splice(0, c);
                    n.sigBytes -= u;
                }
                return new a.init(l, u);
            },
            clone: function() {
                var e = o.clone.call(this);
                return e._data = this._data.clone(), e;
            },
            _minBufferSize: 0
        });
        i.Hasher = l.extend({
            cfg: o.extend(),
            init: function(e) {
                this.cfg = this.cfg.extend(e), this.reset();
            },
            reset: function() {
                l.reset.call(this), this._doReset();
            },
            update: function(e) {
                return this._append(e), this._process(), this;
            },
            finalize: function(e) {
                return e && this._append(e), this._doFinalize();
            },
            blockSize: 16,
            _createHelper: function(e) {
                return function(t, n) {
                    return new e.init(n).finalize(t);
                };
            },
            _createHmacHelper: function(e) {
                return function(t, n) {
                    return new h.HMAC.init(e, n).finalize(t);
                };
            }
        });
        var h = r.algo = {};
        return r;
    }(Math);
}), qa = (Na(function(e, t) {
    var n;
    e.exports = (n = $a, function(e) {
        var t = n, r = t.lib, i = r.WordArray, o = r.Hasher, a = t.algo, s = [];
        !function() {
            for (var t = 0; t < 64; t++) s[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
        }();
        var c = a.MD5 = o.extend({
            _doReset: function() {
                this._hash = new i.init([ 1732584193, 4023233417, 2562383102, 271733878 ]);
            },
            _doProcessBlock: function(e, t) {
                for (var n = 0; n < 16; n++) {
                    var r = t + n, i = e[r];
                    e[r] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
                }
                var o = this._hash.words, a = e[t + 0], c = e[t + 1], p = e[t + 2], d = e[t + 3], v = e[t + 4], g = e[t + 5], m = e[t + 6], y = e[t + 7], _ = e[t + 8], k = e[t + 9], b = e[t + 10], w = e[t + 11], x = e[t + 12], S = e[t + 13], P = e[t + 14], A = e[t + 15], I = o[0], T = o[1], O = o[2], C = o[3];
                I = u(I, T, O, C, a, 7, s[0]), C = u(C, I, T, O, c, 12, s[1]), O = u(O, C, I, T, p, 17, s[2]), 
                T = u(T, O, C, I, d, 22, s[3]), I = u(I, T, O, C, v, 7, s[4]), C = u(C, I, T, O, g, 12, s[5]), 
                O = u(O, C, I, T, m, 17, s[6]), T = u(T, O, C, I, y, 22, s[7]), I = u(I, T, O, C, _, 7, s[8]), 
                C = u(C, I, T, O, k, 12, s[9]), O = u(O, C, I, T, b, 17, s[10]), T = u(T, O, C, I, w, 22, s[11]), 
                I = u(I, T, O, C, x, 7, s[12]), C = u(C, I, T, O, S, 12, s[13]), O = u(O, C, I, T, P, 17, s[14]), 
                I = f(I, T = u(T, O, C, I, A, 22, s[15]), O, C, c, 5, s[16]), C = f(C, I, T, O, m, 9, s[17]), 
                O = f(O, C, I, T, w, 14, s[18]), T = f(T, O, C, I, a, 20, s[19]), I = f(I, T, O, C, g, 5, s[20]), 
                C = f(C, I, T, O, b, 9, s[21]), O = f(O, C, I, T, A, 14, s[22]), T = f(T, O, C, I, v, 20, s[23]), 
                I = f(I, T, O, C, k, 5, s[24]), C = f(C, I, T, O, P, 9, s[25]), O = f(O, C, I, T, d, 14, s[26]), 
                T = f(T, O, C, I, _, 20, s[27]), I = f(I, T, O, C, S, 5, s[28]), C = f(C, I, T, O, p, 9, s[29]), 
                O = f(O, C, I, T, y, 14, s[30]), I = l(I, T = f(T, O, C, I, x, 20, s[31]), O, C, g, 4, s[32]), 
                C = l(C, I, T, O, _, 11, s[33]), O = l(O, C, I, T, w, 16, s[34]), T = l(T, O, C, I, P, 23, s[35]), 
                I = l(I, T, O, C, c, 4, s[36]), C = l(C, I, T, O, v, 11, s[37]), O = l(O, C, I, T, y, 16, s[38]), 
                T = l(T, O, C, I, b, 23, s[39]), I = l(I, T, O, C, S, 4, s[40]), C = l(C, I, T, O, a, 11, s[41]), 
                O = l(O, C, I, T, d, 16, s[42]), T = l(T, O, C, I, m, 23, s[43]), I = l(I, T, O, C, k, 4, s[44]), 
                C = l(C, I, T, O, x, 11, s[45]), O = l(O, C, I, T, A, 16, s[46]), I = h(I, T = l(T, O, C, I, p, 23, s[47]), O, C, a, 6, s[48]), 
                C = h(C, I, T, O, y, 10, s[49]), O = h(O, C, I, T, P, 15, s[50]), T = h(T, O, C, I, g, 21, s[51]), 
                I = h(I, T, O, C, x, 6, s[52]), C = h(C, I, T, O, d, 10, s[53]), O = h(O, C, I, T, b, 15, s[54]), 
                T = h(T, O, C, I, c, 21, s[55]), I = h(I, T, O, C, _, 6, s[56]), C = h(C, I, T, O, A, 10, s[57]), 
                O = h(O, C, I, T, m, 15, s[58]), T = h(T, O, C, I, S, 21, s[59]), I = h(I, T, O, C, v, 6, s[60]), 
                C = h(C, I, T, O, w, 10, s[61]), O = h(O, C, I, T, p, 15, s[62]), T = h(T, O, C, I, k, 21, s[63]), 
                o[0] = o[0] + I | 0, o[1] = o[1] + T | 0, o[2] = o[2] + O | 0, o[3] = o[3] + C | 0;
            },
            _doFinalize: function() {
                var t = this._data, n = t.words, r = 8 * this._nDataBytes, i = 8 * t.sigBytes;
                n[i >>> 5] |= 128 << 24 - i % 32;
                var o = e.floor(r / 4294967296), a = r;
                n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), 
                n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), 
                t.sigBytes = 4 * (n.length + 1), this._process();
                for (var s = this._hash, c = s.words, u = 0; u < 4; u++) {
                    var f = c[u];
                    c[u] = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8);
                }
                return s;
            },
            clone: function() {
                var e = o.clone.call(this);
                return e._hash = this._hash.clone(), e;
            }
        });
        function u(e, t, n, r, i, o, a) {
            var s = e + (t & n | ~t & r) + i + a;
            return (s << o | s >>> 32 - o) + t;
        }
        function f(e, t, n, r, i, o, a) {
            var s = e + (t & r | n & ~r) + i + a;
            return (s << o | s >>> 32 - o) + t;
        }
        function l(e, t, n, r, i, o, a) {
            var s = e + (t ^ n ^ r) + i + a;
            return (s << o | s >>> 32 - o) + t;
        }
        function h(e, t, n, r, i, o, a) {
            var s = e + (n ^ (t | ~r)) + i + a;
            return (s << o | s >>> 32 - o) + t;
        }
        t.MD5 = o._createHelper(c), t.HmacMD5 = o._createHmacHelper(c);
    }(Math), n.MD5);
}), Na(function(e, t) {
    var n, r, i;
    e.exports = (r = (n = $a).lib.Base, i = n.enc.Utf8, void (n.algo.HMAC = r.extend({
        init: function(e, t) {
            e = this._hasher = new e.init(), "string" == typeof t && (t = i.parse(t));
            var n = e.blockSize, r = 4 * n;
            t.sigBytes > r && (t = e.finalize(t)), t.clamp();
            for (var o = this._oKey = t.clone(), a = this._iKey = t.clone(), s = o.words, c = a.words, u = 0; u < n; u++) s[u] ^= 1549556828, 
            c[u] ^= 909522486;
            o.sigBytes = a.sigBytes = r, this.reset();
        },
        reset: function() {
            var e = this._hasher;
            e.reset(), e.update(this._iKey);
        },
        update: function(e) {
            return this._hasher.update(e), this;
        },
        finalize: function(e) {
            var t = this._hasher, n = t.finalize(e);
            return t.reset(), t.finalize(this._oKey.clone().concat(n));
        }
    })));
}), Na(function(e, t) {
    e.exports = $a.HmacMD5;
})), Fa = Na(function(e, t) {
    e.exports = $a.enc.Utf8;
}), Ba = Na(function(e, t) {
    var n, r, i;
    e.exports = (i = (r = n = $a).lib.WordArray, r.enc.Base64 = {
        stringify: function(e) {
            var t = e.words, n = e.sigBytes, r = this._map;
            e.clamp();
            for (var i = [], o = 0; o < n; o += 3) for (var a = (t[o >>> 2] >>> 24 - o % 4 * 8 & 255) << 16 | (t[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255) << 8 | t[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, s = 0; s < 4 && o + .75 * s < n; s++) i.push(r.charAt(a >>> 6 * (3 - s) & 63));
            var c = r.charAt(64);
            if (c) for (;i.length % 4; ) i.push(c);
            return i.join("");
        },
        parse: function(e) {
            var t = e.length, n = this._map, r = this._reverseMap;
            if (!r) {
                r = this._reverseMap = [];
                for (var o = 0; o < n.length; o++) r[n.charCodeAt(o)] = o;
            }
            var a = n.charAt(64);
            if (a) {
                var s = e.indexOf(a);
                -1 !== s && (t = s);
            }
            return function(e, t, n) {
                for (var r = [], o = 0, a = 0; a < t; a++) if (a % 4) {
                    var s = n[e.charCodeAt(a - 1)] << a % 4 * 2, c = n[e.charCodeAt(a)] >>> 6 - a % 4 * 2;
                    r[o >>> 2] |= (s | c) << 24 - o % 4 * 8, o++;
                }
                return i.create(r, o);
            }(e, t, r);
        },
        _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
    }, n.enc.Base64);
}), Ha = "FUNCTION", Ka = "pending", Va = "rejected";

function Wa(e) {
    return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
}

function za(e) {
    return "object" === Wa(e);
}

function Ja(e) {
    return "function" == typeof e;
}

function Ga(e) {
    return function() {
        try {
            return e.apply(e, arguments);
        } catch (e) {
            e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
            console.error(e);
        }
    };
}

var Qa = "REJECTED", Ya = "NOT_PENDING", Xa = function() {
    function e() {
        var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.createPromise, r = t.retryRule, i = void 0 === r ? Qa : r;
        c(this, e), this.createPromise = n, this.status = null, this.promise = null, this.retryRule = i;
    }
    return u(e, [ {
        key: "needRetry",
        get: function() {
            if (!this.status) return !0;
            switch (this.retryRule) {
              case Qa:
                return this.status === Va;

              case Ya:
                return this.status !== Ka;
            }
        }
    }, {
        key: "exec",
        value: function() {
            var e = this;
            return this.needRetry ? (this.status = Ka, this.promise = this.createPromise().then(function(t) {
                return e.status = "fulfilled", Promise.resolve(t);
            }, function(t) {
                return e.status = Va, Promise.reject(t);
            }), this.promise) : this.promise;
        }
    } ]), e;
}();

function Za(e) {
    return e && "string" == typeof e ? JSON.parse(e) : e;
}

var es = Za([]);

Za("");

var ts = Za("[]") || [];

try {
    "__UNI__3FCE964";
} catch (js) {}

var ns = {};

function rs(e) {
    var t, n, r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
    return t = ns, n = e, Object.prototype.hasOwnProperty.call(t, n) || (ns[e] = r), 
    ns[e];
}

var is = [ "invoke", "success", "fail", "complete" ], os = rs("_globalUniCloudInterceptor");

function as(e, t) {
    os[e] || (os[e] = {}), za(t) && Object.keys(t).forEach(function(n) {
        is.indexOf(n) > -1 && function(e, t, n) {
            var r = os[e][t];
            r || (r = os[e][t] = []), -1 === r.indexOf(n) && Ja(n) && r.push(n);
        }(e, n, t[n]);
    });
}

function ss(e, t) {
    os[e] || (os[e] = {}), za(t) ? Object.keys(t).forEach(function(n) {
        is.indexOf(n) > -1 && function(e, t, n) {
            var r = os[e][t];
            if (r) {
                var i = r.indexOf(n);
                i > -1 && r.splice(i, 1);
            }
        }(e, n, t[n]);
    }) : delete os[e];
}

function cs(e, t) {
    return e && 0 !== e.length ? e.reduce(function(e, n) {
        return e.then(function() {
            return n(t);
        });
    }, Promise.resolve()) : Promise.resolve();
}

function us(e, t) {
    return os[e] && os[e][t] || [];
}

function fs(e) {
    as("callObject", e);
}

var ls = rs("_globalUniCloudListener"), hs = "response", ps = "needLogin", ds = "refreshToken", vs = "clientdb", gs = "cloudfunction", ms = "cloudobject";

function ys(e) {
    return ls[e] || (ls[e] = []), ls[e];
}

function _s(e, t) {
    var n = ys(e);
    n.includes(t) || n.push(t);
}

function ks(e, t) {
    var n = ys(e), r = n.indexOf(t);
    -1 !== r && n.splice(r, 1);
}

function bs(e, t) {
    for (var n = ys(e), r = 0; r < n.length; r++) (0, n[r])(t);
}

var ws, xs = !1;

function Ss() {
    return ws || (ws = new Promise(function(e) {
        xs && e(), function t() {
            if ("function" == typeof getCurrentPages) {
                var n = getCurrentPages();
                n && n[0] && (xs = !0, e());
            }
            xs || setTimeout(function() {
                t();
            }, 30);
        }();
    }));
}

function Ps(e) {
    var t = {};
    for (var n in e) {
        var r = e[n];
        Ja(r) && (t[n] = Ga(r));
    }
    return t;
}

var As, Is, Ts = function(e) {
    i(n, e);
    var t = o(n);
    function n(e) {
        var r;
        return c(this, n), (r = t.call(this, e.message)).errMsg = e.message || e.errMsg || "unknown system error", 
        r.code = r.errCode = e.code || e.errCode || "SYSTEM_ERROR", r.errSubject = r.subject = e.subject || e.errSubject, 
        r.cause = e.cause, r.requestId = e.requestId, r;
    }
    return u(n, [ {
        key: "toJson",
        value: function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0;
            if (!(e >= 10)) return e++, {
                errCode: this.errCode,
                errMsg: this.errMsg,
                errSubject: this.errSubject,
                cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
            };
        }
    } ]), n;
}(a(Error)), Os = {
    request: function(e) {
        return en.request(e);
    },
    uploadFile: function(e) {
        return en.uploadFile(e);
    },
    setStorageSync: function(e, t) {
        return en.setStorageSync(e, t);
    },
    getStorageSync: function(e) {
        return en.getStorageSync(e);
    },
    removeStorageSync: function(e) {
        return en.removeStorageSync(e);
    },
    clearStorageSync: function() {
        return en.clearStorageSync();
    }
};

function Cs() {
    return {
        token: Os.getStorageSync("uni_id_token") || Os.getStorageSync("uniIdToken"),
        tokenExpired: Os.getStorageSync("uni_id_token_expired")
    };
}

function Es() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.token, n = e.tokenExpired;
    t && Os.setStorageSync("uni_id_token", t), n && Os.setStorageSync("uni_id_token_expired", n);
}

function Ls() {
    return As || (As = en.getSystemInfoSync()), As;
}

function Rs() {
    var e = en.getLocale && en.getLocale() || "en";
    if (Is) return r(r({}, Is), {}, {
        locale: e,
        LOCALE: e
    });
    for (var t = Ls(), n = t.deviceId, i = t.osName, o = t.uniPlatform, a = t.appId, s = [ "pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting" ], c = 0; c < s.length; c++) delete t[s[c]];
    return Is = r(r({
        PLATFORM: o,
        OS: i,
        APPID: a,
        DEVICEID: n
    }, function() {
        var e, t;
        try {
            if (en.getLaunchOptionsSync) {
                if (en.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
                var n = en.getLaunchOptionsSync(), r = n.scene;
                e = n.channel, t = r;
            }
        } catch (e) {}
        return {
            channel: e,
            scene: t
        };
    }()), t), r(r({}, Is), {}, {
        locale: e,
        LOCALE: e
    });
}

var Ms, js, Us = function(e, t) {
    var n = "";
    return Object.keys(e).sort().forEach(function(t) {
        e[t] && (n = n + "&" + t + "=" + e[t]);
    }), n = n.slice(1), qa(n, t).toString();
}, Ds = function(e) {
    return Ba.stringify(Fa.parse(e));
}, Ns = function() {
    function e(t) {
        var n = this;
        c(this, e), [ "spaceId", "clientSecret" ].forEach(function(e) {
            if (!Object.prototype.hasOwnProperty.call(t, e)) throw new Error("".concat(e, " required"));
        }), this.config = Object.assign({}, {
            endpoint: 0 === t.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
        }, t), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", 
        this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, 
        this.adapter = Os, this._getAccessTokenPromiseHub = new Xa({
            createPromise: function() {
                return n.requestAuth(n.setupRequest({
                    method: "serverless.auth.user.anonymousAuthorize",
                    params: "{}"
                }, "auth")).then(function(e) {
                    if (!e.result || !e.result.accessToken) throw new Ts({
                        code: "AUTH_FAILED",
                        message: "获取accessToken失败"
                    });
                    n.setAccessToken(e.result.accessToken);
                });
            },
            retryRule: Ya
        });
    }
    var r, i, o;
    return u(e, [ {
        key: "hasAccessToken",
        get: function() {
            return !!this.accessToken;
        }
    }, {
        key: "setAccessToken",
        value: function(e) {
            this.accessToken = e;
        }
    }, {
        key: "requestWrapped",
        value: function(e) {
            return function(e, t) {
                return new Promise(function(n, r) {
                    t(Object.assign(e, {
                        complete: function(e) {
                            e || (e = {});
                            var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
                            if (!e.statusCode || e.statusCode >= 400) return r(new Ts({
                                code: "SYS_ERR",
                                message: e.errMsg || "request:fail",
                                requestId: t
                            }));
                            var i = e.data;
                            if (i.error) return r(new Ts({
                                code: i.error.code,
                                message: i.error.message,
                                requestId: t
                            }));
                            i.result = i.data, i.requestId = t, delete i.data, n(i);
                        }
                    }));
                });
            }(e, this.adapter.request);
        }
    }, {
        key: "requestAuth",
        value: function(e) {
            return this.requestWrapped(e);
        }
    }, {
        key: "request",
        value: function(e, t) {
            var n = this;
            return Promise.resolve().then(function() {
                return n.hasAccessToken ? t ? n.requestWrapped(e) : n.requestWrapped(e).catch(function(t) {
                    return new Promise(function(e, n) {
                        !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
                    }).then(function() {
                        return n.getAccessToken();
                    }).then(function() {
                        var t = n.rebuildRequest(e);
                        return n.request(t, !0);
                    });
                }) : n.getAccessToken().then(function() {
                    var t = n.rebuildRequest(e);
                    return n.request(t, !0);
                });
            });
        }
    }, {
        key: "rebuildRequest",
        value: function(e) {
            var t = Object.assign({}, e);
            return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, 
            t.header["x-serverless-sign"] = Us(t.data, this.config.clientSecret), t;
        }
    }, {
        key: "setupRequest",
        value: function(e, t) {
            var n = Object.assign({}, e, {
                spaceId: this.config.spaceId,
                timestamp: Date.now()
            }), r = {
                "Content-Type": "application/json"
            };
            return "auth" !== t && (n.token = this.accessToken, r["x-basement-token"] = this.accessToken), 
            r["x-serverless-sign"] = Us(n, this.config.clientSecret), {
                url: this.config.requestUrl,
                method: "POST",
                data: n,
                dataType: "json",
                header: r
            };
        }
    }, {
        key: "getAccessToken",
        value: function() {
            return this._getAccessTokenPromiseHub.exec();
        }
    }, {
        key: "authorize",
        value: (o = n(t().mark(function e() {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this.getAccessToken();

                  case 2:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return o.apply(this, arguments);
        })
    }, {
        key: "callFunction",
        value: function(e) {
            var t = {
                method: "serverless.function.runtime.invoke",
                params: JSON.stringify({
                    functionTarget: e.name,
                    functionArgs: e.data || {}
                })
            };
            return this.request(this.setupRequest(t));
        }
    }, {
        key: "getOSSUploadOptionsFromPath",
        value: function(e) {
            var t = {
                method: "serverless.file.resource.generateProximalSign",
                params: JSON.stringify(e)
            };
            return this.request(this.setupRequest(t));
        }
    }, {
        key: "uploadFileToOSS",
        value: function(e) {
            var t = this, n = e.url, r = e.formData, i = e.name, o = e.filePath, a = e.fileType, s = e.onUploadProgress;
            return new Promise(function(e, c) {
                var u = t.adapter.uploadFile({
                    url: n,
                    formData: r,
                    name: i,
                    filePath: o,
                    fileType: a,
                    header: {
                        "X-OSS-server-side-encrpytion": "AES256"
                    },
                    success: function(t) {
                        t && t.statusCode < 400 ? e(t) : c(new Ts({
                            code: "UPLOAD_FAILED",
                            message: "文件上传失败"
                        }));
                    },
                    fail: function(e) {
                        c(new Ts({
                            code: e.code || "UPLOAD_FAILED",
                            message: e.message || e.errMsg || "文件上传失败"
                        }));
                    }
                });
                "function" == typeof s && u && "function" == typeof u.onProgressUpdate && u.onProgressUpdate(function(e) {
                    s({
                        loaded: e.totalBytesSent,
                        total: e.totalBytesExpectedToSend
                    });
                });
            });
        }
    }, {
        key: "reportOSSUpload",
        value: function(e) {
            var t = {
                method: "serverless.file.resource.report",
                params: JSON.stringify(e)
            };
            return this.request(this.setupRequest(t));
        }
    }, {
        key: "uploadFile",
        value: (i = n(t().mark(function e(n) {
            var r, i, o, a, s, c, u, f, l, h, p, d, v, g, m, y, _, k, b, w, x, S;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (r = n.filePath, i = n.cloudPath, o = n.fileType, a = void 0 === o ? "image" : o, 
                    s = n.cloudPathAsRealPath, c = void 0 !== s && s, u = n.onUploadProgress, f = n.config, 
                    "string" === Wa(i)) {
                        e.next = 3;
                        break;
                    }
                    throw new Ts({
                        code: "INVALID_PARAM",
                        message: "cloudPath必须为字符串类型"
                    });

                  case 3:
                    if (i = i.trim()) {
                        e.next = 5;
                        break;
                    }
                    throw new Ts({
                        code: "INVALID_PARAM",
                        message: "cloudPath不可为空"
                    });

                  case 5:
                    if (!/:\/\//.test(i)) {
                        e.next = 7;
                        break;
                    }
                    throw new Ts({
                        code: "INVALID_PARAM",
                        message: "cloudPath不合法"
                    });

                  case 7:
                    if (l = f && f.envType || this.config.envType, !(c && ("/" !== i[0] && (i = "/" + i), 
                    i.indexOf("\\") > -1))) {
                        e.next = 10;
                        break;
                    }
                    throw new Ts({
                        code: "INVALID_PARAM",
                        message: "使用cloudPath作为路径时，cloudPath不可包含“\\”"
                    });

                  case 10:
                    return e.next = 12, this.getOSSUploadOptionsFromPath({
                        env: l,
                        filename: c ? i.split("/").pop() : i,
                        fileId: c ? i : void 0
                    });

                  case 12:
                    return h = e.sent.result, p = "https://" + h.cdnDomain + "/" + h.ossPath, d = h.securityToken, 
                    v = h.accessKeyId, g = h.signature, m = h.host, y = h.ossPath, _ = h.id, k = h.policy, 
                    b = h.ossCallbackUrl, w = {
                        "Cache-Control": "max-age=2592000",
                        "Content-Disposition": "attachment",
                        OSSAccessKeyId: v,
                        Signature: g,
                        host: m,
                        id: _,
                        key: y,
                        policy: k,
                        success_action_status: 200
                    }, d && (w["x-oss-security-token"] = d), b && (x = JSON.stringify({
                        callbackUrl: b,
                        callbackBody: JSON.stringify({
                            fileId: _,
                            spaceId: this.config.spaceId
                        }),
                        callbackBodyType: "application/json"
                    }), w.callback = Ds(x)), S = {
                        url: "https://" + h.host,
                        formData: w,
                        fileName: "file",
                        name: "file",
                        filePath: r,
                        fileType: a
                    }, e.next = 27, this.uploadFileToOSS(Object.assign({}, S, {
                        onUploadProgress: u
                    }));

                  case 27:
                    if (!b) {
                        e.next = 29;
                        break;
                    }
                    return e.abrupt("return", {
                        success: !0,
                        filePath: r,
                        fileID: p
                    });

                  case 29:
                    return e.next = 31, this.reportOSSUpload({
                        id: _
                    });

                  case 31:
                    if (!e.sent.success) {
                        e.next = 33;
                        break;
                    }
                    return e.abrupt("return", {
                        success: !0,
                        filePath: r,
                        fileID: p
                    });

                  case 33:
                    throw new Ts({
                        code: "UPLOAD_FAILED",
                        message: "文件上传失败"
                    });

                  case 34:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return i.apply(this, arguments);
        })
    }, {
        key: "getTempFileURL",
        value: function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.fileList;
            return new Promise(function(e, n) {
                Array.isArray(t) && 0 !== t.length || n(new Ts({
                    code: "INVALID_PARAM",
                    message: "fileList的元素必须是非空的字符串"
                })), e({
                    fileList: t.map(function(e) {
                        return {
                            fileID: e,
                            tempFileURL: e
                        };
                    })
                });
            });
        }
    }, {
        key: "getFileInfo",
        value: (r = n(t().mark(function e() {
            var n, r, i, o = arguments;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (n = o.length > 0 && void 0 !== o[0] ? o[0] : {}, r = n.fileList, Array.isArray(r) && 0 !== r.length) {
                        e.next = 3;
                        break;
                    }
                    throw new Ts({
                        code: "INVALID_PARAM",
                        message: "fileList的元素必须是非空的字符串"
                    });

                  case 3:
                    return i = {
                        method: "serverless.file.resource.info",
                        params: JSON.stringify({
                            id: r.map(function(e) {
                                return e.split("?")[0];
                            }).join(",")
                        })
                    }, e.next = 6, this.request(this.setupRequest(i));

                  case 6:
                    return e.t0 = e.sent.result, e.abrupt("return", {
                        fileList: e.t0
                    });

                  case 8:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return r.apply(this, arguments);
        })
    } ]), e;
}(), $s = {
    init: function(e) {
        var t = new Ns(e), n = {
            signInAnonymously: function() {
                return t.authorize();
            },
            getLoginState: function() {
                return Promise.resolve(!1);
            }
        };
        return t.auth = function() {
            return n;
        }, t.customAuth = t.auth, t;
    }
}, qs = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";

(js = Ms || (Ms = {})).local = "local", js.none = "none", js.session = "session";

var Fs, Bs = function() {}, Hs = Na(function(e, t) {
    var n;
    e.exports = (n = $a, function(e) {
        var t = n, r = t.lib, i = r.WordArray, o = r.Hasher, a = t.algo, s = [], c = [];
        !function() {
            function t(t) {
                for (var n = e.sqrt(t), r = 2; r <= n; r++) if (!(t % r)) return !1;
                return !0;
            }
            function n(e) {
                return 4294967296 * (e - (0 | e)) | 0;
            }
            for (var r = 2, i = 0; i < 64; ) t(r) && (i < 8 && (s[i] = n(e.pow(r, .5))), c[i] = n(e.pow(r, 1 / 3)), 
            i++), r++;
        }();
        var u = [], f = a.SHA256 = o.extend({
            _doReset: function() {
                this._hash = new i.init(s.slice(0));
            },
            _doProcessBlock: function(e, t) {
                for (var n = this._hash.words, r = n[0], i = n[1], o = n[2], a = n[3], s = n[4], f = n[5], l = n[6], h = n[7], p = 0; p < 64; p++) {
                    if (p < 16) u[p] = 0 | e[t + p]; else {
                        var d = u[p - 15], v = (d << 25 | d >>> 7) ^ (d << 14 | d >>> 18) ^ d >>> 3, g = u[p - 2], m = (g << 15 | g >>> 17) ^ (g << 13 | g >>> 19) ^ g >>> 10;
                        u[p] = v + u[p - 7] + m + u[p - 16];
                    }
                    var y = r & i ^ r & o ^ i & o, _ = (r << 30 | r >>> 2) ^ (r << 19 | r >>> 13) ^ (r << 10 | r >>> 22), k = h + ((s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25)) + (s & f ^ ~s & l) + c[p] + u[p];
                    h = l, l = f, f = s, s = a + k | 0, a = o, o = i, i = r, r = k + (_ + y) | 0;
                }
                n[0] = n[0] + r | 0, n[1] = n[1] + i | 0, n[2] = n[2] + o | 0, n[3] = n[3] + a | 0, 
                n[4] = n[4] + s | 0, n[5] = n[5] + f | 0, n[6] = n[6] + l | 0, n[7] = n[7] + h | 0;
            },
            _doFinalize: function() {
                var t = this._data, n = t.words, r = 8 * this._nDataBytes, i = 8 * t.sigBytes;
                return n[i >>> 5] |= 128 << 24 - i % 32, n[14 + (i + 64 >>> 9 << 4)] = e.floor(r / 4294967296), 
                n[15 + (i + 64 >>> 9 << 4)] = r, t.sigBytes = 4 * n.length, this._process(), this._hash;
            },
            clone: function() {
                var e = o.clone.call(this);
                return e._hash = this._hash.clone(), e;
            }
        });
        t.SHA256 = o._createHelper(f), t.HmacSHA256 = o._createHmacHelper(f);
    }(Math), n.SHA256);
}), Ks = Na(function(e, t) {
    e.exports = $a.HmacSHA256;
}), Vs = function() {
    var e;
    if (!Promise) {
        (e = function() {}).promise = {};
        var t = function() {
            throw new Ts({
                message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
            });
        };
        return Object.defineProperty(e.promise, "then", {
            get: t
        }), Object.defineProperty(e.promise, "catch", {
            get: t
        }), e;
    }
    var n = new Promise(function(t, n) {
        e = function(e, r) {
            return e ? n(e) : t(r);
        };
    });
    return e.promise = n, e;
};

function Ws(e) {
    return void 0 === e;
}

function zs(e) {
    return "[object Null]" === Object.prototype.toString.call(e);
}

!function(e) {
    e.WEB = "web", e.WX_MP = "wx_mp";
}(Fs || (Fs = {}));

var Js = {
    adapter: null,
    runtime: void 0
}, Gs = [ "anonymousUuidKey" ], Qs = function(e) {
    i(n, Bs);
    var t = o(n);
    function n() {
        var e;
        return c(this, n), e = t.call(this), Js.adapter.root.tcbObject || (Js.adapter.root.tcbObject = {}), 
        e;
    }
    return u(n, [ {
        key: "setItem",
        value: function(e, t) {
            Js.adapter.root.tcbObject[e] = t;
        }
    }, {
        key: "getItem",
        value: function(e) {
            return Js.adapter.root.tcbObject[e];
        }
    }, {
        key: "removeItem",
        value: function(e) {
            delete Js.adapter.root.tcbObject[e];
        }
    }, {
        key: "clear",
        value: function() {
            delete Js.adapter.root.tcbObject;
        }
    } ]), n;
}();

function Ys(e, t) {
    switch (e) {
      case "local":
        return t.localStorage || new Qs();

      case "none":
        return new Qs();

      default:
        return t.sessionStorage || new Qs();
    }
}

var Xs = function() {
    function e(t) {
        if (c(this, e), !this._storage) {
            this._persistence = Js.adapter.primaryStorage || t.persistence, this._storage = Ys(this._persistence, Js.adapter);
            var n = "access_token_".concat(t.env), r = "access_token_expire_".concat(t.env), i = "refresh_token_".concat(t.env), o = "anonymous_uuid_".concat(t.env), a = "login_type_".concat(t.env), s = "user_info_".concat(t.env);
            this.keys = {
                accessTokenKey: n,
                accessTokenExpireKey: r,
                refreshTokenKey: i,
                anonymousUuidKey: o,
                loginTypeKey: a,
                userInfoKey: s
            };
        }
    }
    return u(e, [ {
        key: "updatePersistence",
        value: function(e) {
            if (e !== this._persistence) {
                var t = "local" === this._persistence;
                this._persistence = e;
                var n = Ys(e, Js.adapter);
                for (var r in this.keys) {
                    var i = this.keys[r];
                    if (!t || !Gs.includes(r)) {
                        var o = this._storage.getItem(i);
                        Ws(o) || zs(o) || (n.setItem(i, o), this._storage.removeItem(i));
                    }
                }
                this._storage = n;
            }
        }
    }, {
        key: "setStore",
        value: function(e, t, n) {
            if (this._storage) {
                var r = {
                    version: n || "localCachev1",
                    content: t
                }, i = JSON.stringify(r);
                try {
                    this._storage.setItem(e, i);
                } catch (e) {
                    e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                    throw e;
                }
            }
        }
    }, {
        key: "getStore",
        value: function(e, t) {
            try {
                if (!this._storage) return;
            } catch (e) {
                e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                return "";
            }
            t = t || "localCachev1";
            var n = this._storage.getItem(e);
            return n && n.indexOf(t) >= 0 ? JSON.parse(n).content : "";
        }
    }, {
        key: "removeStore",
        value: function(e) {
            this._storage.removeItem(e);
        }
    } ]), e;
}(), Zs = {}, ec = {};

function tc(e) {
    return Zs[e];
}

var nc = u(function e(t, n) {
    c(this, e), this.data = n || null, this.name = t;
}), rc = function(e) {
    i(n, nc);
    var t = o(n);
    function n(e, r) {
        var i;
        return c(this, n), (i = t.call(this, "error", {
            error: e,
            data: r
        })).error = e, i;
    }
    return u(n);
}(), ic = new (function() {
    function e() {
        c(this, e), this._listeners = {};
    }
    return u(e, [ {
        key: "on",
        value: function(e, t) {
            return n = e, r = t, (i = this._listeners)[n] = i[n] || [], i[n].push(r), this;
            var n, r, i;
        }
    }, {
        key: "off",
        value: function(e, t) {
            return function(e, t, n) {
                if (n && n[e]) {
                    var r = n[e].indexOf(t);
                    -1 !== r && n[e].splice(r, 1);
                }
            }(e, t, this._listeners), this;
        }
    }, {
        key: "fire",
        value: function(e, t) {
            if (e instanceof rc) return console.error(e.error), this;
            var n = "string" == typeof e ? new nc(e, t || {}) : e, r = n.name;
            if (this._listens(r)) {
                n.target = this;
                var i, o = this._listeners[r] ? p(this._listeners[r]) : [], a = s(o);
                try {
                    for (a.s(); !(i = a.n()).done; ) {
                        i.value.call(this, n);
                    }
                } catch (e) {
                    e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                    a.e(e);
                } finally {
                    a.f();
                }
            }
            return this;
        }
    }, {
        key: "_listens",
        value: function(e) {
            return this._listeners[e] && this._listeners[e].length > 0;
        }
    } ]), e;
}())();

function oc(e, t) {
    ic.on(e, t);
}

function ac(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
    ic.fire(e, t);
}

function sc(e, t) {
    ic.off(e, t);
}

var cc, uc = "loginStateChanged", fc = "loginStateExpire", lc = "loginTypeChanged", hc = "anonymousConverted", pc = "refreshAccessToken";

!function(e) {
    e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", 
    e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", 
    e.NULL = "NULL";
}(cc || (cc = {}));

var dc = [ "auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered" ], vc = {
    "X-SDK-Version": "1.3.5"
};

function gc(e, t, n) {
    var i = e[t];
    e[t] = function(t) {
        var o = {}, a = {};
        n.forEach(function(n) {
            var r = n.call(e, t), i = r.data, s = r.headers;
            Object.assign(o, i), Object.assign(a, s);
        });
        var s = t.data;
        return s && function() {
            var e;
            if (e = s, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = r(r({}, s), o); else for (var n in o) s.append(n, o[n]);
        }(), t.headers = r(r({}, t.headers || {}), a), i.call(e, t);
    };
}

function mc() {
    var e = Math.random().toString(16).slice(2);
    return {
        data: {
            seqId: e
        },
        headers: r(r({}, vc), {}, {
            "x-seqid": e
        })
    };
}

var yc = function() {
    function e() {
        var t, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
        c(this, e), this.config = n, this._reqClass = new Js.adapter.reqClass({
            timeout: this.config.timeout,
            timeoutMsg: "请求在".concat(this.config.timeout / 1e3, "s内未完成，已中断"),
            restrictedMethods: [ "post" ]
        }), this._cache = tc(this.config.env), this._localCache = (t = this.config.env, 
        ec[t]), gc(this._reqClass, "post", [ mc ]), gc(this._reqClass, "upload", [ mc ]), 
        gc(this._reqClass, "download", [ mc ]);
    }
    var i, o, a, s, f, l, h, p;
    return u(e, [ {
        key: "post",
        value: (p = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._reqClass.post(n);

                  case 2:
                    return e.abrupt("return", e.sent);

                  case 3:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return p.apply(this, arguments);
        })
    }, {
        key: "upload",
        value: (h = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._reqClass.upload(n);

                  case 2:
                    return e.abrupt("return", e.sent);

                  case 3:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return h.apply(this, arguments);
        })
    }, {
        key: "download",
        value: (l = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._reqClass.download(n);

                  case 2:
                    return e.abrupt("return", e.sent);

                  case 3:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return l.apply(this, arguments);
        })
    }, {
        key: "refreshAccessToken",
        value: (f = n(t().mark(function e() {
            var n, r;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken()), 
                    e.prev = 1, e.next = 4, this._refreshAccessTokenPromise;

                  case 4:
                    n = e.sent, e.next = 10;
                    break;

                  case 7:
                    e.prev = 7, e.t0 = e.catch(1), r = e.t0;

                  case 10:
                    if (this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, 
                    !r) {
                        e.next = 12;
                        break;
                    }
                    throw r;

                  case 12:
                    return e.abrupt("return", n);

                  case 13:
                  case "end":
                    return e.stop();
                }
            }, e, this, [ [ 1, 7 ] ]);
        })), function() {
            return f.apply(this, arguments);
        })
    }, {
        key: "_refreshAccessToken",
        value: (s = n(t().mark(function e() {
            var n, r, i, o, a, s, c, u, f, l, h, p, d;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (n = this._cache.keys, r = n.accessTokenKey, i = n.accessTokenExpireKey, o = n.refreshTokenKey, 
                    a = n.loginTypeKey, s = n.anonymousUuidKey, this._cache.removeStore(r), this._cache.removeStore(i), 
                    c = this._cache.getStore(o)) {
                        e.next = 5;
                        break;
                    }
                    throw new Ts({
                        message: "未登录CloudBase"
                    });

                  case 5:
                    return u = {
                        refresh_token: c
                    }, e.next = 8, this.request("auth.fetchAccessTokenWithRefreshToken", u);

                  case 8:
                    if (!(f = e.sent).data.code) {
                        e.next = 21;
                        break;
                    }
                    if ("SIGN_PARAM_INVALID" !== (l = f.data.code) && "REFRESH_TOKEN_EXPIRED" !== l && "INVALID_REFRESH_TOKEN" !== l) {
                        e.next = 20;
                        break;
                    }
                    if (this._cache.getStore(a) !== cc.ANONYMOUS || "INVALID_REFRESH_TOKEN" !== l) {
                        e.next = 19;
                        break;
                    }
                    return h = this._cache.getStore(s), p = this._cache.getStore(o), e.next = 17, this.send("auth.signInAnonymously", {
                        anonymous_uuid: h,
                        refresh_token: p
                    });

                  case 17:
                    return d = e.sent, e.abrupt("return", (this.setRefreshToken(d.refresh_token), this._refreshAccessToken()));

                  case 19:
                    ac(fc), this._cache.removeStore(o);

                  case 20:
                    throw new Ts({
                        code: f.data.code,
                        message: "刷新access token失败：".concat(f.data.code)
                    });

                  case 21:
                    if (!f.data.access_token) {
                        e.next = 23;
                        break;
                    }
                    return e.abrupt("return", (ac(pc), this._cache.setStore(r, f.data.access_token), 
                    this._cache.setStore(i, f.data.access_token_expire + Date.now()), {
                        accessToken: f.data.access_token,
                        accessTokenExpire: f.data.access_token_expire
                    }));

                  case 23:
                    f.data.refresh_token && (this._cache.removeStore(o), this._cache.setStore(o, f.data.refresh_token), 
                    this._refreshAccessToken());

                  case 24:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return s.apply(this, arguments);
        })
    }, {
        key: "getAccessToken",
        value: (a = n(t().mark(function e() {
            var n, r, i, o, a, s, c;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (n = this._cache.keys, r = n.accessTokenKey, i = n.accessTokenExpireKey, o = n.refreshTokenKey, 
                    this._cache.getStore(o)) {
                        e.next = 3;
                        break;
                    }
                    throw new Ts({
                        message: "refresh token不存在，登录状态异常"
                    });

                  case 3:
                    if (a = this._cache.getStore(r), s = this._cache.getStore(i), c = !0, e.t0 = this._shouldRefreshAccessTokenHook, 
                    !e.t0) {
                        e.next = 9;
                        break;
                    }
                    return e.next = 8, this._shouldRefreshAccessTokenHook(a, s);

                  case 8:
                    e.t0 = !e.sent;

                  case 9:
                    if (e.t1 = e.t0, !e.t1) {
                        e.next = 12;
                        break;
                    }
                    c = !1;

                  case 12:
                    return e.abrupt("return", (!a || !s || s < Date.now()) && c ? this.refreshAccessToken() : {
                        accessToken: a,
                        accessTokenExpire: s
                    });

                  case 13:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return a.apply(this, arguments);
        })
    }, {
        key: "request",
        value: (o = n(t().mark(function e(n, i, o) {
            var a, s, c, u, f, l, h, p, d, v, g, m, y, _, k, b;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (a = "x-tcb-trace_".concat(this.config.env), s = "application/x-www-form-urlencoded", 
                    c = r({
                        action: n,
                        env: this.config.env,
                        dataVersion: "2019-08-16"
                    }, i), -1 !== dc.indexOf(n)) {
                        e.next = 10;
                        break;
                    }
                    if (u = this._cache.keys.refreshTokenKey, e.t0 = this._cache.getStore(u), !e.t0) {
                        e.next = 10;
                        break;
                    }
                    return e.next = 9, this.getAccessToken();

                  case 9:
                    c.access_token = e.sent.accessToken;

                  case 10:
                    if ("storage.uploadFile" === n) {
                        for (l in f = new FormData()) f.hasOwnProperty(l) && void 0 !== f[l] && f.append(l, c[l]);
                        s = "multipart/form-data";
                    } else for (h in s = "application/json", f = {}, c) void 0 !== c[h] && (f[h] = c[h]);
                    return p = {
                        headers: {
                            "content-type": s
                        }
                    }, o && o.onUploadProgress && (p.onUploadProgress = o.onUploadProgress), (d = this._localCache.getStore(a)) && (p.headers["X-TCB-Trace"] = d), 
                    v = i.parse, g = i.inQuery, m = i.search, y = {
                        env: this.config.env
                    }, v && (y.parse = !0), g && (y = r(r({}, g), y)), _ = function(e, t) {
                        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = /\?/.test(t), i = "";
                        for (var o in n) "" === i ? !r && (t += "?") : i += "&", i += "".concat(o, "=").concat(encodeURIComponent(n[o]));
                        return /^http(s)?\:\/\//.test(t += i) ? t : "".concat(e).concat(t);
                    }(qs, "//tcb-api.tencentcloudapi.com/web", y), m && (_ += m), e.next = 22, this.post(r({
                        url: _,
                        data: f
                    }, p));

                  case 22:
                    if (k = e.sent, (b = k.header && k.header["x-tcb-trace"]) && this._localCache.setStore(a, b), 
                    (200 === Number(k.status) || 200 === Number(k.statusCode)) && k.data) {
                        e.next = 26;
                        break;
                    }
                    throw new Ts({
                        code: "NETWORK_ERROR",
                        message: "network request error"
                    });

                  case 26:
                    return e.abrupt("return", k);

                  case 27:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t, n) {
            return o.apply(this, arguments);
        })
    }, {
        key: "send",
        value: (i = n(t().mark(function e(n) {
            var r, i, o, a = arguments;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return r = a.length > 1 && void 0 !== a[1] ? a[1] : {}, e.next = 3, this.request(n, r, {
                        onUploadProgress: r.onUploadProgress
                    });

                  case 3:
                    if ("ACCESS_TOKEN_EXPIRED" !== (i = e.sent).data.code || -1 !== dc.indexOf(n)) {
                        e.next = 13;
                        break;
                    }
                    return e.next = 7, this.refreshAccessToken();

                  case 7:
                    return e.next = 9, this.request(n, r, {
                        onUploadProgress: r.onUploadProgress
                    });

                  case 9:
                    if (!(o = e.sent).data.code) {
                        e.next = 12;
                        break;
                    }
                    throw new Ts({
                        code: o.data.code,
                        message: o.data.message
                    });

                  case 12:
                    return e.abrupt("return", o.data);

                  case 13:
                    if (!i.data.code) {
                        e.next = 15;
                        break;
                    }
                    throw new Ts({
                        code: i.data.code,
                        message: i.data.message
                    });

                  case 15:
                    return e.abrupt("return", i.data);

                  case 16:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return i.apply(this, arguments);
        })
    }, {
        key: "setRefreshToken",
        value: function(e) {
            var t = this._cache.keys, n = t.accessTokenKey, r = t.accessTokenExpireKey, i = t.refreshTokenKey;
            this._cache.removeStore(n), this._cache.removeStore(r), this._cache.setStore(i, e);
        }
    } ]), e;
}(), _c = {};

function kc(e) {
    return _c[e];
}

var bc = function() {
    function e(t) {
        c(this, e), this.config = t, this._cache = tc(t.env), this._request = kc(t.env);
    }
    var r;
    return u(e, [ {
        key: "setRefreshToken",
        value: function(e) {
            var t = this._cache.keys, n = t.accessTokenKey, r = t.accessTokenExpireKey, i = t.refreshTokenKey;
            this._cache.removeStore(n), this._cache.removeStore(r), this._cache.setStore(i, e);
        }
    }, {
        key: "setAccessToken",
        value: function(e, t) {
            var n = this._cache.keys, r = n.accessTokenKey, i = n.accessTokenExpireKey;
            this._cache.setStore(r, e), this._cache.setStore(i, t);
        }
    }, {
        key: "refreshUserInfo",
        value: (r = n(t().mark(function e() {
            var n, r;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._request.send("auth.getUserInfo", {});

                  case 2:
                    return n = e.sent, r = n.data, e.abrupt("return", (this.setLocalUserInfo(r), r));

                  case 5:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return r.apply(this, arguments);
        })
    }, {
        key: "setLocalUserInfo",
        value: function(e) {
            var t = this._cache.keys.userInfoKey;
            this._cache.setStore(t, e);
        }
    } ]), e;
}(), wc = function() {
    function e(t) {
        if (c(this, e), !t) throw new Ts({
            code: "PARAM_ERROR",
            message: "envId is not defined"
        });
        this._envId = t, this._cache = tc(this._envId), this._request = kc(this._envId), 
        this.setUserInfo();
    }
    var r, i, o;
    return u(e, [ {
        key: "linkWithTicket",
        value: function(e) {
            if ("string" != typeof e) throw new Ts({
                code: "PARAM_ERROR",
                message: "ticket must be string"
            });
            return this._request.send("auth.linkWithTicket", {
                ticket: e
            });
        }
    }, {
        key: "linkWithRedirect",
        value: function(e) {
            e.signInWithRedirect();
        }
    }, {
        key: "updatePassword",
        value: function(e, t) {
            return this._request.send("auth.updatePassword", {
                oldPassword: t,
                newPassword: e
            });
        }
    }, {
        key: "updateEmail",
        value: function(e) {
            return this._request.send("auth.updateEmail", {
                newEmail: e
            });
        }
    }, {
        key: "updateUsername",
        value: function(e) {
            if ("string" != typeof e) throw new Ts({
                code: "PARAM_ERROR",
                message: "username must be a string"
            });
            return this._request.send("auth.updateUsername", {
                username: e
            });
        }
    }, {
        key: "getLinkedUidList",
        value: (o = n(t().mark(function e() {
            var n, r, i, o;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._request.send("auth.getLinkedUidList", {});

                  case 2:
                    return n = e.sent, r = n.data, i = !1, o = r.users, e.abrupt("return", (o.forEach(function(e) {
                        e.wxOpenId && e.wxPublicId && (i = !0);
                    }), {
                        users: o,
                        hasPrimaryUid: i
                    }));

                  case 7:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return o.apply(this, arguments);
        })
    }, {
        key: "setPrimaryUid",
        value: function(e) {
            return this._request.send("auth.setPrimaryUid", {
                uid: e
            });
        }
    }, {
        key: "unlink",
        value: function(e) {
            return this._request.send("auth.unlink", {
                platform: e
            });
        }
    }, {
        key: "update",
        value: (i = n(t().mark(function e(n) {
            var r, i, o, a, s, c, u, f;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return r = n.nickName, i = n.gender, o = n.avatarUrl, a = n.province, s = n.country, 
                    c = n.city, e.next = 8, this._request.send("auth.updateUserInfo", {
                        nickName: r,
                        gender: i,
                        avatarUrl: o,
                        province: a,
                        country: s,
                        city: c
                    });

                  case 8:
                    u = e.sent, f = u.data, this.setLocalUserInfo(f);

                  case 11:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return i.apply(this, arguments);
        })
    }, {
        key: "refresh",
        value: (r = n(t().mark(function e() {
            var n, r;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._request.send("auth.getUserInfo", {});

                  case 2:
                    return n = e.sent, r = n.data, e.abrupt("return", (this.setLocalUserInfo(r), r));

                  case 5:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return r.apply(this, arguments);
        })
    }, {
        key: "setUserInfo",
        value: function() {
            var e = this, t = this._cache.keys.userInfoKey, n = this._cache.getStore(t);
            [ "uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl" ].forEach(function(t) {
                e[t] = n[t];
            }), this.location = {
                country: n.country,
                province: n.province,
                city: n.city
            };
        }
    }, {
        key: "setLocalUserInfo",
        value: function(e) {
            var t = this._cache.keys.userInfoKey;
            this._cache.setStore(t, e), this.setUserInfo();
        }
    } ]), e;
}(), xc = function() {
    function e(t) {
        if (c(this, e), !t) throw new Ts({
            code: "PARAM_ERROR",
            message: "envId is not defined"
        });
        this._cache = tc(t);
        var n = this._cache.keys, r = n.refreshTokenKey, i = n.accessTokenKey, o = n.accessTokenExpireKey, a = this._cache.getStore(r), s = this._cache.getStore(i), u = this._cache.getStore(o);
        this.credential = {
            refreshToken: a,
            accessToken: s,
            accessTokenExpire: u
        }, this.user = new wc(t);
    }
    return u(e, [ {
        key: "isAnonymousAuth",
        get: function() {
            return this.loginType === cc.ANONYMOUS;
        }
    }, {
        key: "isCustomAuth",
        get: function() {
            return this.loginType === cc.CUSTOM;
        }
    }, {
        key: "isWeixinAuth",
        get: function() {
            return this.loginType === cc.WECHAT || this.loginType === cc.WECHAT_OPEN || this.loginType === cc.WECHAT_PUBLIC;
        }
    }, {
        key: "loginType",
        get: function() {
            return this._cache.getStore(this._cache.keys.loginTypeKey);
        }
    } ]), e;
}(), Sc = function(e) {
    i(f, bc);
    var r, a, s = o(f);
    function f() {
        return c(this, f), s.apply(this, arguments);
    }
    return u(f, [ {
        key: "signIn",
        value: (a = n(t().mark(function e() {
            var n, r, i, o, a, s, c;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return this._cache.updatePersistence("local"), n = this._cache.keys, r = n.anonymousUuidKey, 
                    i = n.refreshTokenKey, o = this._cache.getStore(r) || void 0, a = this._cache.getStore(i) || void 0, 
                    e.next = 8, this._request.send("auth.signInAnonymously", {
                        anonymous_uuid: o,
                        refresh_token: a
                    });

                  case 8:
                    if (!(s = e.sent).uuid || !s.refresh_token) {
                        e.next = 20;
                        break;
                    }
                    return this._setAnonymousUUID(s.uuid), this.setRefreshToken(s.refresh_token), e.next = 14, 
                    this._request.refreshAccessToken();

                  case 14:
                    return ac(uc), ac(lc, {
                        env: this.config.env,
                        loginType: cc.ANONYMOUS,
                        persistence: "local"
                    }), c = new xc(this.config.env), e.next = 19, c.user.refresh();

                  case 19:
                    return e.abrupt("return", c);

                  case 20:
                    throw new Ts({
                        message: "匿名登录失败"
                    });

                  case 21:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return a.apply(this, arguments);
        })
    }, {
        key: "linkAndRetrieveDataWithTicket",
        value: (r = n(t().mark(function e(n) {
            var r, i, o, a, s, c;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return r = this._cache.keys, i = r.anonymousUuidKey, o = r.refreshTokenKey, a = this._cache.getStore(i), 
                    s = this._cache.getStore(o), e.next = 7, this._request.send("auth.linkAndRetrieveDataWithTicket", {
                        anonymous_uuid: a,
                        refresh_token: s,
                        ticket: n
                    });

                  case 7:
                    if (!(c = e.sent).refresh_token) {
                        e.next = 16;
                        break;
                    }
                    return this._clearAnonymousUUID(), this.setRefreshToken(c.refresh_token), e.next = 13, 
                    this._request.refreshAccessToken();

                  case 13:
                    return ac(hc, {
                        env: this.config.env
                    }), ac(lc, {
                        loginType: cc.CUSTOM,
                        persistence: "local"
                    }), e.abrupt("return", {
                        credential: {
                            refreshToken: c.refresh_token
                        }
                    });

                  case 16:
                    throw new Ts({
                        message: "匿名转化失败"
                    });

                  case 17:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return r.apply(this, arguments);
        })
    }, {
        key: "_setAnonymousUUID",
        value: function(e) {
            var t = this._cache.keys, n = t.anonymousUuidKey, r = t.loginTypeKey;
            this._cache.removeStore(n), this._cache.setStore(n, e), this._cache.setStore(r, cc.ANONYMOUS);
        }
    }, {
        key: "_clearAnonymousUUID",
        value: function() {
            this._cache.removeStore(this._cache.keys.anonymousUuidKey);
        }
    } ]), f;
}(), Pc = function(e) {
    i(s, bc);
    var r, a = o(s);
    function s() {
        return c(this, s), a.apply(this, arguments);
    }
    return u(s, [ {
        key: "signIn",
        value: (r = n(t().mark(function e(n) {
            var r, i;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if ("string" == typeof n) {
                        e.next = 2;
                        break;
                    }
                    throw new Ts({
                        code: "PARAM_ERROR",
                        message: "ticket must be a string"
                    });

                  case 2:
                    return r = this._cache.keys.refreshTokenKey, e.next = 5, this._request.send("auth.signInWithTicket", {
                        ticket: n,
                        refresh_token: this._cache.getStore(r) || ""
                    });

                  case 5:
                    if (!(i = e.sent).refresh_token) {
                        e.next = 15;
                        break;
                    }
                    return this.setRefreshToken(i.refresh_token), e.next = 10, this._request.refreshAccessToken();

                  case 10:
                    return ac(uc), ac(lc, {
                        env: this.config.env,
                        loginType: cc.CUSTOM,
                        persistence: this.config.persistence
                    }), e.next = 14, this.refreshUserInfo();

                  case 14:
                    return e.abrupt("return", new xc(this.config.env));

                  case 15:
                    throw new Ts({
                        message: "自定义登录失败"
                    });

                  case 16:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return r.apply(this, arguments);
        })
    } ]), s;
}(), Ac = function(e) {
    i(l, bc);
    var r, a, s, f = o(l);
    function l() {
        return c(this, l), f.apply(this, arguments);
    }
    return u(l, [ {
        key: "signIn",
        value: (s = n(t().mark(function e(n, r) {
            var i, o, a, s, c;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if ("string" == typeof n) {
                        e.next = 2;
                        break;
                    }
                    throw new Ts({
                        code: "PARAM_ERROR",
                        message: "email must be a string"
                    });

                  case 2:
                    return i = this._cache.keys.refreshTokenKey, e.next = 5, this._request.send("auth.signIn", {
                        loginType: "EMAIL",
                        email: n,
                        password: r,
                        refresh_token: this._cache.getStore(i) || ""
                    });

                  case 5:
                    if (o = e.sent, a = o.refresh_token, s = o.access_token, c = o.access_token_expire, 
                    !a) {
                        e.next = 22;
                        break;
                    }
                    if (this.setRefreshToken(a), !s || !c) {
                        e.next = 15;
                        break;
                    }
                    this.setAccessToken(s, c), e.next = 17;
                    break;

                  case 15:
                    return e.next = 17, this._request.refreshAccessToken();

                  case 17:
                    return e.next = 19, this.refreshUserInfo();

                  case 19:
                    return ac(uc), ac(lc, {
                        env: this.config.env,
                        loginType: cc.EMAIL,
                        persistence: this.config.persistence
                    }), e.abrupt("return", new xc(this.config.env));

                  case 22:
                    throw o.code ? new Ts({
                        code: o.code,
                        message: "邮箱登录失败: ".concat(o.message)
                    }) : new Ts({
                        message: "邮箱登录失败"
                    });

                  case 23:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t) {
            return s.apply(this, arguments);
        })
    }, {
        key: "activate",
        value: (a = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", this._request.send("auth.activateEndUserMail", {
                        token: n
                    }));

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return a.apply(this, arguments);
        })
    }, {
        key: "resetPasswordWithToken",
        value: (r = n(t().mark(function e(n, r) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
                        token: n,
                        newPassword: r
                    }));

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t) {
            return r.apply(this, arguments);
        })
    } ]), l;
}(), Ic = function(e) {
    i(s, bc);
    var r, a = o(s);
    function s() {
        return c(this, s), a.apply(this, arguments);
    }
    return u(s, [ {
        key: "signIn",
        value: (r = n(t().mark(function e(n, r) {
            var i, o, a, s, c;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if ("string" == typeof n) {
                        e.next = 2;
                        break;
                    }
                    throw new Ts({
                        code: "PARAM_ERROR",
                        message: "username must be a string"
                    });

                  case 2:
                    return "string" != typeof r && (r = "", console.warn("password is empty")), i = this._cache.keys.refreshTokenKey, 
                    e.next = 6, this._request.send("auth.signIn", {
                        loginType: cc.USERNAME,
                        username: n,
                        password: r,
                        refresh_token: this._cache.getStore(i) || ""
                    });

                  case 6:
                    if (o = e.sent, a = o.refresh_token, s = o.access_token_expire, c = o.access_token, 
                    !a) {
                        e.next = 23;
                        break;
                    }
                    if (this.setRefreshToken(a), !c || !s) {
                        e.next = 16;
                        break;
                    }
                    this.setAccessToken(c, s), e.next = 18;
                    break;

                  case 16:
                    return e.next = 18, this._request.refreshAccessToken();

                  case 18:
                    return e.next = 20, this.refreshUserInfo();

                  case 20:
                    return ac(uc), ac(lc, {
                        env: this.config.env,
                        loginType: cc.USERNAME,
                        persistence: this.config.persistence
                    }), e.abrupt("return", new xc(this.config.env));

                  case 23:
                    throw o.code ? new Ts({
                        code: o.code,
                        message: "用户名密码登录失败: ".concat(o.message)
                    }) : new Ts({
                        message: "用户名密码登录失败"
                    });

                  case 24:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t) {
            return r.apply(this, arguments);
        })
    } ]), s;
}(), Tc = function() {
    function e(t) {
        c(this, e), this.config = t, this._cache = tc(t.env), this._request = kc(t.env), 
        this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), 
        oc(lc, this._onLoginTypeChanged);
    }
    var i, o, a, s, f, l, h, p, d;
    return u(e, [ {
        key: "currentUser",
        get: function() {
            var e = this.hasLoginState();
            return e && e.user || null;
        }
    }, {
        key: "loginType",
        get: function() {
            return this._cache.getStore(this._cache.keys.loginTypeKey);
        }
    }, {
        key: "anonymousAuthProvider",
        value: function() {
            return new Sc(this.config);
        }
    }, {
        key: "customAuthProvider",
        value: function() {
            return new Pc(this.config);
        }
    }, {
        key: "emailAuthProvider",
        value: function() {
            return new Ac(this.config);
        }
    }, {
        key: "usernameAuthProvider",
        value: function() {
            return new Ic(this.config);
        }
    }, {
        key: "signInAnonymously",
        value: (d = n(t().mark(function e() {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", new Sc(this.config).signIn());

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return d.apply(this, arguments);
        })
    }, {
        key: "signInWithEmailAndPassword",
        value: (p = n(t().mark(function e(n, r) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", new Ac(this.config).signIn(n, r));

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t) {
            return p.apply(this, arguments);
        })
    }, {
        key: "signInWithUsernameAndPassword",
        value: function(e, t) {
            return new Ic(this.config).signIn(e, t);
        }
    }, {
        key: "linkAndRetrieveDataWithTicket",
        value: (h = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return this._anonymousAuthProvider || (this._anonymousAuthProvider = new Sc(this.config)), 
                    oc(hc, this._onAnonymousConverted), e.next = 4, this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(n);

                  case 4:
                    return e.abrupt("return", e.sent);

                  case 5:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return h.apply(this, arguments);
        })
    }, {
        key: "signOut",
        value: (l = n(t().mark(function e() {
            var n, r, i, o, a, s;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (this.loginType !== cc.ANONYMOUS) {
                        e.next = 2;
                        break;
                    }
                    throw new Ts({
                        message: "匿名用户不支持登出操作"
                    });

                  case 2:
                    if (n = this._cache.keys, r = n.refreshTokenKey, i = n.accessTokenKey, o = n.accessTokenExpireKey, 
                    a = this._cache.getStore(r)) {
                        e.next = 5;
                        break;
                    }
                    return e.abrupt("return");

                  case 5:
                    return e.next = 7, this._request.send("auth.logout", {
                        refresh_token: a
                    });

                  case 7:
                    return s = e.sent, e.abrupt("return", (this._cache.removeStore(r), this._cache.removeStore(i), 
                    this._cache.removeStore(o), ac(uc), ac(lc, {
                        env: this.config.env,
                        loginType: cc.NULL,
                        persistence: this.config.persistence
                    }), s));

                  case 9:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return l.apply(this, arguments);
        })
    }, {
        key: "signUpWithEmailAndPassword",
        value: (f = n(t().mark(function e(n, r) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
                        email: n,
                        password: r
                    }));

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t) {
            return f.apply(this, arguments);
        })
    }, {
        key: "sendPasswordResetEmail",
        value: (s = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
                        email: n
                    }));

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return s.apply(this, arguments);
        })
    }, {
        key: "onLoginStateChanged",
        value: function(e) {
            var t = this;
            oc(uc, function() {
                var n = t.hasLoginState();
                e.call(t, n);
            });
            var n = this.hasLoginState();
            e.call(this, n);
        }
    }, {
        key: "onLoginStateExpired",
        value: function(e) {
            oc(fc, e.bind(this));
        }
    }, {
        key: "onAccessTokenRefreshed",
        value: function(e) {
            oc(pc, e.bind(this));
        }
    }, {
        key: "onAnonymousConverted",
        value: function(e) {
            oc(hc, e.bind(this));
        }
    }, {
        key: "onLoginTypeChanged",
        value: function(e) {
            var t = this;
            oc(lc, function() {
                var n = t.hasLoginState();
                e.call(t, n);
            });
        }
    }, {
        key: "getAccessToken",
        value: (a = n(t().mark(function e() {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.next = 2, this._request.getAccessToken();

                  case 2:
                    return e.t0 = e.sent.accessToken, e.t1 = this.config.env, e.abrupt("return", {
                        accessToken: e.t0,
                        env: e.t1
                    });

                  case 5:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return a.apply(this, arguments);
        })
    }, {
        key: "hasLoginState",
        value: function() {
            var e = this._cache.keys.refreshTokenKey;
            return this._cache.getStore(e) ? new xc(this.config.env) : null;
        }
    }, {
        key: "isUsernameRegistered",
        value: (o = n(t().mark(function e(n) {
            var r, i;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if ("string" == typeof n) {
                        e.next = 2;
                        break;
                    }
                    throw new Ts({
                        code: "PARAM_ERROR",
                        message: "username must be a string"
                    });

                  case 2:
                    return e.next = 4, this._request.send("auth.isUsernameRegistered", {
                        username: n
                    });

                  case 4:
                    return r = e.sent, i = r.data, e.abrupt("return", i && i.isRegistered);

                  case 7:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return o.apply(this, arguments);
        })
    }, {
        key: "getLoginState",
        value: function() {
            return Promise.resolve(this.hasLoginState());
        }
    }, {
        key: "signInWithTicket",
        value: (i = n(t().mark(function e(n) {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", new Pc(this.config).signIn(n));

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e) {
            return i.apply(this, arguments);
        })
    }, {
        key: "shouldRefreshAccessToken",
        value: function(e) {
            this._request._shouldRefreshAccessTokenHook = e.bind(this);
        }
    }, {
        key: "getUserInfo",
        value: function() {
            return this._request.send("auth.getUserInfo", {}).then(function(e) {
                return e.code ? e : r(r({}, e.data), {}, {
                    requestId: e.seqId
                });
            });
        }
    }, {
        key: "getAuthHeader",
        value: function() {
            var e = this._cache.keys, t = e.refreshTokenKey, n = e.accessTokenKey, r = this._cache.getStore(t);
            return {
                "x-cloudbase-credentials": this._cache.getStore(n) + "/@@/" + r
            };
        }
    }, {
        key: "_onAnonymousConverted",
        value: function(e) {
            e.data.env === this.config.env && this._cache.updatePersistence(this.config.persistence);
        }
    }, {
        key: "_onLoginTypeChanged",
        value: function(e) {
            var t = e.data, n = t.loginType, r = t.persistence;
            t.env === this.config.env && (this._cache.updatePersistence(r), this._cache.setStore(this._cache.keys.loginTypeKey, n));
        }
    } ]), e;
}(), Oc = function(e, t) {
    t = t || Vs();
    var n = kc(this.config.env), r = e.cloudPath, i = e.filePath, o = e.onUploadProgress, a = e.fileType, s = void 0 === a ? "image" : a;
    return n.send("storage.getUploadMetadata", {
        path: r
    }).then(function(e) {
        var a = e.data, c = a.url, u = a.authorization, f = a.token, l = a.fileId, h = a.cosFileId, p = e.requestId, d = {
            key: r,
            signature: u,
            "x-cos-meta-fileid": h,
            success_action_status: "201",
            "x-cos-security-token": f
        };
        n.upload({
            url: c,
            data: d,
            file: i,
            name: r,
            fileType: s,
            onUploadProgress: o
        }).then(function(e) {
            201 === e.statusCode ? t(null, {
                fileID: l,
                requestId: p
            }) : t(new Ts({
                code: "STORAGE_REQUEST_FAIL",
                message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
            }));
        }).catch(function(e) {
            t(e);
        });
    }).catch(function(e) {
        t(e);
    }), t.promise;
}, Cc = function(e, t) {
    t = t || Vs();
    var n = kc(this.config.env), r = e.cloudPath;
    return n.send("storage.getUploadMetadata", {
        path: r
    }).then(function(e) {
        t(null, e);
    }).catch(function(e) {
        t(e);
    }), t.promise;
}, Ec = function(e, t) {
    var n = e.fileList;
    if (t = t || Vs(), !n || !Array.isArray(n)) return {
        code: "INVALID_PARAM",
        message: "fileList必须是非空的数组"
    };
    var r, i = s(n);
    try {
        for (i.s(); !(r = i.n()).done; ) {
            var o = r.value;
            if (!o || "string" != typeof o) return {
                code: "INVALID_PARAM",
                message: "fileList的元素必须是非空的字符串"
            };
        }
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        i.e(e);
    } finally {
        i.f();
    }
    var a = {
        fileid_list: n
    };
    return kc(this.config.env).send("storage.batchDeleteFile", a).then(function(e) {
        e.code ? t(null, e) : t(null, {
            fileList: e.data.delete_list,
            requestId: e.requestId
        });
    }).catch(function(e) {
        t(e);
    }), t.promise;
}, Lc = function(e, t) {
    var n = e.fileList;
    t = t || Vs(), n && Array.isArray(n) || t(null, {
        code: "INVALID_PARAM",
        message: "fileList必须是非空的数组"
    });
    var r, i = [], o = s(n);
    try {
        for (o.s(); !(r = o.n()).done; ) {
            var a = r.value;
            "object" == f(a) ? (a.hasOwnProperty("fileID") && a.hasOwnProperty("maxAge") || t(null, {
                code: "INVALID_PARAM",
                message: "fileList的元素必须是包含fileID和maxAge的对象"
            }), i.push({
                fileid: a.fileID,
                max_age: a.maxAge
            })) : "string" == typeof a ? i.push({
                fileid: a
            }) : t(null, {
                code: "INVALID_PARAM",
                message: "fileList的元素必须是字符串"
            });
        }
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        o.e(e);
    } finally {
        o.f();
    }
    var c = {
        file_list: i
    };
    return kc(this.config.env).send("storage.batchGetDownloadUrl", c).then(function(e) {
        e.code ? t(null, e) : t(null, {
            fileList: e.data.download_list,
            requestId: e.requestId
        });
    }).catch(function(e) {
        t(e);
    }), t.promise;
}, Rc = function() {
    var e = n(t().mark(function e(n, r) {
        var i, o, a, s;
        return t().wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                return i = n.fileID, e.next = 3, Lc.call(this, {
                    fileList: [ {
                        fileID: i,
                        maxAge: 600
                    } ]
                });

              case 3:
                if ("SUCCESS" === (o = e.sent.fileList[0]).code) {
                    e.next = 6;
                    break;
                }
                return e.abrupt("return", r ? r(o) : new Promise(function(e) {
                    e(o);
                }));

              case 6:
                if (a = kc(this.config.env), s = o.download_url, s = encodeURI(s), r) {
                    e.next = 10;
                    break;
                }
                return e.abrupt("return", a.download({
                    url: s
                }));

              case 10:
                return e.t0 = r, e.next = 13, a.download({
                    url: s
                });

              case 13:
                e.t1 = e.sent, (0, e.t0)(e.t1);

              case 15:
              case "end":
                return e.stop();
            }
        }, e, this);
    }));
    return function(t, n) {
        return e.apply(this, arguments);
    };
}(), Mc = function(e, t) {
    var n, r = e.name, i = e.data, o = e.query, a = e.parse, s = e.search, c = t || Vs();
    try {
        n = i ? JSON.stringify(i) : "";
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        return Promise.reject(e);
    }
    if (!r) return Promise.reject(new Ts({
        code: "PARAM_ERROR",
        message: "函数名不能为空"
    }));
    var u = {
        inQuery: o,
        parse: a,
        search: s,
        function_name: r,
        request_data: n
    };
    return kc(this.config.env).send("functions.invokeFunction", u).then(function(e) {
        if (e.code) c(null, e); else {
            var t = e.data.response_data;
            if (a) c(null, {
                result: t,
                requestId: e.requestId
            }); else try {
                t = JSON.parse(e.data.response_data), c(null, {
                    result: t,
                    requestId: e.requestId
                });
            } catch (e) {
                e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                c(new Ts({
                    message: "response data must be json"
                }));
            }
        }
        return c.promise;
    }).catch(function(e) {
        c(e);
    }), c.promise;
}, jc = {
    timeout: 15e3,
    persistence: "session"
}, Uc = {}, Dc = new (function() {
    function e(t) {
        c(this, e), this.config = t || this.config, this.authObj = void 0;
    }
    var i;
    return u(e, [ {
        key: "init",
        value: function(t) {
            switch (Js.adapter || (this.requestClient = new Js.adapter.reqClass({
                timeout: t.timeout || 5e3,
                timeoutMsg: "请求在".concat((t.timeout || 5e3) / 1e3, "s内未完成，已中断")
            })), this.config = r(r({}, jc), t), !0) {
              case this.config.timeout > 6e5:
                console.warn("timeout大于可配置上限[10分钟]，已重置为上限数值"), this.config.timeout = 6e5;
                break;

              case this.config.timeout < 100:
                console.warn("timeout小于可配置下限[100ms]，已重置为下限数值"), this.config.timeout = 100;
            }
            return new e(this.config);
        }
    }, {
        key: "auth",
        value: function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.persistence;
            if (this.authObj) return this.authObj;
            var n, i = t || Js.adapter.primaryStorage || jc.persistence;
            return i !== this.config.persistence && (this.config.persistence = i), function(e) {
                var t = e.env;
                Zs[t] = new Xs(e), ec[t] = new Xs(r(r({}, e), {}, {
                    persistence: "local"
                }));
            }(this.config), n = this.config, _c[n.env] = new yc(n), this.authObj = new Tc(this.config), 
            this.authObj;
        }
    }, {
        key: "on",
        value: function(e, t) {
            return oc.apply(this, [ e, t ]);
        }
    }, {
        key: "off",
        value: function(e, t) {
            return sc.apply(this, [ e, t ]);
        }
    }, {
        key: "callFunction",
        value: function(e, t) {
            return Mc.apply(this, [ e, t ]);
        }
    }, {
        key: "deleteFile",
        value: function(e, t) {
            return Ec.apply(this, [ e, t ]);
        }
    }, {
        key: "getTempFileURL",
        value: function(e, t) {
            return Lc.apply(this, [ e, t ]);
        }
    }, {
        key: "downloadFile",
        value: function(e, t) {
            return Rc.apply(this, [ e, t ]);
        }
    }, {
        key: "uploadFile",
        value: function(e, t) {
            return Oc.apply(this, [ e, t ]);
        }
    }, {
        key: "getUploadMetadata",
        value: function(e, t) {
            return Cc.apply(this, [ e, t ]);
        }
    }, {
        key: "registerExtension",
        value: function(e) {
            Uc[e.name] = e;
        }
    }, {
        key: "invokeExtension",
        value: (i = n(t().mark(function e(n, r) {
            var i;
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    if (i = Uc[n]) {
                        e.next = 3;
                        break;
                    }
                    throw new Ts({
                        message: "扩展".concat(n, " 必须先注册")
                    });

                  case 3:
                    return e.next = 5, i.invoke(r, this);

                  case 5:
                    return e.abrupt("return", e.sent);

                  case 6:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function(e, t) {
            return i.apply(this, arguments);
        })
    }, {
        key: "useAdapters",
        value: function(e) {
            var t = function(e) {
                var t, n, r = (t = e, "[object Array]" === Object.prototype.toString.call(t) ? e : [ e ]), i = s(r);
                try {
                    for (i.s(); !(n = i.n()).done; ) {
                        var o = n.value, a = o.isMatch, c = o.genAdapter, u = o.runtime;
                        if (a()) return {
                            adapter: c(),
                            runtime: u
                        };
                    }
                } catch (e) {
                    e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                    i.e(e);
                } finally {
                    i.f();
                }
            }(e) || {}, n = t.adapter, r = t.runtime;
            n && (Js.adapter = n), r && (Js.runtime = r);
        }
    } ]), e;
}())();

function Nc(e, t, n) {
    void 0 === n && (n = {});
    var r = /\?/.test(t), i = "";
    for (var o in n) "" === i ? !r && (t += "?") : i += "&", i += o + "=" + encodeURIComponent(n[o]);
    return /^http(s)?:\/\//.test(t += i) ? t : "" + e + t;
}

var $c = function() {
    function e() {
        c(this, e);
    }
    return u(e, [ {
        key: "post",
        value: function(e) {
            var t = e.url, n = e.data, r = e.headers;
            return new Promise(function(e, i) {
                Os.request({
                    url: Nc("https:", t),
                    data: n,
                    method: "POST",
                    header: r,
                    success: function(t) {
                        e(t);
                    },
                    fail: function(e) {
                        i(e);
                    }
                });
            });
        }
    }, {
        key: "upload",
        value: function(e) {
            return new Promise(function(t, n) {
                var r = e.url, i = e.file, o = e.data, a = e.headers, s = e.fileType, c = Os.uploadFile({
                    url: Nc("https:", r),
                    name: "file",
                    formData: Object.assign({}, o),
                    filePath: i,
                    fileType: s,
                    header: a,
                    success: function(e) {
                        var n = {
                            statusCode: e.statusCode,
                            data: e.data || {}
                        };
                        200 === e.statusCode && o.success_action_status && (n.statusCode = parseInt(o.success_action_status, 10)), 
                        t(n);
                    },
                    fail: function(e) {
                        n(new Error(e.errMsg || "uploadFile:fail"));
                    }
                });
                "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function(t) {
                    e.onUploadProgress({
                        loaded: t.totalBytesSent,
                        total: t.totalBytesExpectedToSend
                    });
                });
            });
        }
    } ]), e;
}(), qc = {
    setItem: function(e, t) {
        Os.setStorageSync(e, t);
    },
    getItem: function(e) {
        return Os.getStorageSync(e);
    },
    removeItem: function(e) {
        Os.removeStorageSync(e);
    },
    clear: function() {
        Os.clearStorageSync();
    }
}, Fc = {
    genAdapter: function() {
        return {
            root: {},
            reqClass: $c,
            localStorage: qc,
            primaryStorage: "local"
        };
    },
    isMatch: function() {
        return !0;
    },
    runtime: "uni_app"
};

Dc.useAdapters(Fc);

var Bc = Dc, Hc = Bc.init;

Bc.init = function(e) {
    e.env = e.spaceId;
    var t = Hc.call(this, e);
    t.config.provider = "tencent", t.config.spaceId = e.spaceId;
    var n = t.auth;
    return t.auth = function(e) {
        var t = n.call(this, e);
        return [ "linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo" ].forEach(function(e) {
            var n;
            t[e] = (n = t[e], function(e) {
                var t = Ps(e = e || {}), r = t.success, i = t.fail, o = t.complete;
                if (!(r || i || o)) return n.call(this, e);
                n.call(this, e).then(function(e) {
                    r && r(e), o && o(e);
                }, function(e) {
                    i && i(e), o && o(e);
                });
            }).bind(t);
        }), t;
    }, t.customAuth = t.auth, t;
};

var Kc = Bc, Vc = function(e) {
    i(n, Ns);
    var t = o(n);
    function n() {
        return c(this, n), t.apply(this, arguments);
    }
    return u(n, [ {
        key: "getAccessToken",
        value: function() {
            var e = this;
            return new Promise(function(t, n) {
                var r = "Anonymous_Access_token";
                e.setAccessToken(r), t(r);
            });
        }
    }, {
        key: "setupRequest",
        value: function(e, t) {
            var n = Object.assign({}, e, {
                spaceId: this.config.spaceId,
                timestamp: Date.now()
            }), r = {
                "Content-Type": "application/json"
            };
            "auth" !== t && (n.token = this.accessToken, r["x-basement-token"] = this.accessToken), 
            r["x-serverless-sign"] = Us(n, this.config.clientSecret);
            var i = Rs();
            r["x-client-info"] = encodeURIComponent(JSON.stringify(i));
            var o = Cs().token;
            return r["x-client-token"] = o, {
                url: this.config.requestUrl,
                method: "POST",
                data: n,
                dataType: "json",
                header: JSON.parse(JSON.stringify(r))
            };
        }
    }, {
        key: "uploadFileToOSS",
        value: function(e) {
            var t = this, n = e.url, r = e.formData, i = e.name, o = e.filePath, a = e.fileType, s = e.onUploadProgress;
            return new Promise(function(e, c) {
                var u = t.adapter.uploadFile({
                    url: n,
                    formData: r,
                    name: i,
                    filePath: o,
                    fileType: a,
                    success: function(t) {
                        t && t.statusCode < 400 ? e(t) : c(new Ts({
                            code: "UPLOAD_FAILED",
                            message: "文件上传失败"
                        }));
                    },
                    fail: function(e) {
                        c(new Ts({
                            code: e.code || "UPLOAD_FAILED",
                            message: e.message || e.errMsg || "文件上传失败"
                        }));
                    }
                });
                "function" == typeof s && u && "function" == typeof u.onProgressUpdate && u.onProgressUpdate(function(e) {
                    s({
                        loaded: e.totalBytesSent,
                        total: e.totalBytesExpectedToSend
                    });
                });
            });
        }
    }, {
        key: "uploadFile",
        value: function(e) {
            var t, n = this, r = e.filePath, i = e.cloudPath, o = e.fileType, a = void 0 === o ? "image" : o, s = e.onUploadProgress;
            if (!i) throw new Ts({
                code: "CLOUDPATH_REQUIRED",
                message: "cloudPath不可为空"
            });
            return this.getOSSUploadOptionsFromPath({
                cloudPath: i
            }).then(function(e) {
                var i = e.result, o = i.url, c = i.formData, u = i.name;
                t = e.result.fileUrl;
                var f = {
                    url: o,
                    formData: c,
                    name: u,
                    filePath: r,
                    fileType: a
                };
                return n.uploadFileToOSS(Object.assign({}, f, {
                    onUploadProgress: s
                }));
            }).then(function() {
                return n.reportOSSUpload({
                    cloudPath: i
                });
            }).then(function(e) {
                return new Promise(function(n, i) {
                    e.success ? n({
                        success: !0,
                        filePath: r,
                        fileID: t
                    }) : i(new Ts({
                        code: "UPLOAD_FAILED",
                        message: "文件上传失败"
                    }));
                });
            });
        }
    }, {
        key: "deleteFile",
        value: function(e) {
            var t = e.fileList, n = {
                method: "serverless.file.resource.delete",
                params: JSON.stringify({
                    fileList: t
                })
            };
            return this.request(this.setupRequest(n)).then(function(e) {
                if (e.success) return e.result;
                throw new Ts({
                    code: "DELETE_FILE_FAILED",
                    message: "删除文件失败"
                });
            });
        }
    }, {
        key: "getTempFileURL",
        value: function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.fileList, n = e.maxAge;
            if (!Array.isArray(t) || 0 === t.length) throw new Ts({
                code: "INVALID_PARAM",
                message: "fileList的元素必须是非空的字符串"
            });
            var r = {
                method: "serverless.file.resource.getTempFileURL",
                params: JSON.stringify({
                    fileList: t,
                    maxAge: n
                })
            };
            return this.request(this.setupRequest(r)).then(function(e) {
                if (e.success) return {
                    fileList: e.result.fileList.map(function(e) {
                        return {
                            fileID: e.fileID,
                            tempFileURL: e.tempFileURL
                        };
                    })
                };
                throw new Ts({
                    code: "GET_TEMP_FILE_URL_FAILED",
                    message: "获取临时文件链接失败"
                });
            });
        }
    } ]), n;
}(), Wc = {
    init: function(e) {
        var t = new Vc(e), n = {
            signInAnonymously: function() {
                return t.authorize();
            },
            getLoginState: function() {
                return Promise.resolve(!1);
            }
        };
        return t.auth = function() {
            return n;
        }, t.customAuth = t.auth, t;
    }
}, zc = Na(function(e, t) {
    e.exports = $a.enc.Hex;
});

function Jc() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.data, r = t.functionName, i = t.method, o = t.headers, a = t.signHeaderKeys, s = void 0 === a ? [] : a, c = t.config, u = Date.now(), f = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
        var t = 16 * Math.random() | 0;
        return ("x" === e ? t : 3 & t | 8).toString(16);
    }), l = Object.assign({}, o, {
        "x-from-app-id": c.spaceAppId,
        "x-from-env-id": c.spaceId,
        "x-to-env-id": c.spaceId,
        "x-from-instance-id": u,
        "x-from-function-name": r,
        "x-client-timestamp": u,
        "x-alipay-source": "client",
        "x-request-id": f,
        "x-alipay-callid": f,
        "x-trace-id": f
    }), p = [ "x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp" ].concat(s), d = e.split("?") || [], v = h(d, 2), g = v[0], m = void 0 === g ? "" : g, y = v[1], _ = void 0 === y ? "" : y, k = function(e) {
        var t = e.signedHeaders.join(";"), n = e.signedHeaders.map(function(t) {
            return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
        }).join(""), r = Hs(e.body).toString(zc), i = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(r, "\n"), o = Hs(i).toString(zc), a = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(o, "\n"), s = Ks(a, e.secretKey).toString(zc);
        return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(s);
    }({
        path: m,
        query: _,
        method: i,
        headers: l,
        timestamp: u,
        body: JSON.stringify(n),
        secretId: c.accessKey,
        secretKey: c.secretKey,
        signedHeaders: p.sort()
    });
    return {
        url: "".concat(c.endpoint).concat(e),
        headers: Object.assign({}, l, {
            Authorization: k
        })
    };
}

function Gc(e) {
    var t = e.url, n = e.data, r = e.method, i = void 0 === r ? "POST" : r, o = e.headers, a = void 0 === o ? {} : o;
    return new Promise(function(e, r) {
        Os.request({
            url: t,
            method: i,
            data: n,
            header: a,
            dataType: "json",
            complete: function() {
                var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = a["x-trace-id"] || "";
                if (!t.statusCode || t.statusCode >= 400) {
                    var i = t.data || {}, o = i.message, s = i.errMsg, c = i.trace_id;
                    return r(new Ts({
                        code: "SYS_ERR",
                        message: o || s || "request:fail",
                        requestId: c || n
                    }));
                }
                e({
                    status: t.statusCode,
                    data: t.data,
                    headers: t.header,
                    requestId: n
                });
            }
        });
    });
}

function Qc(e, t) {
    var n = e.path, r = e.data, i = e.method, o = void 0 === i ? "GET" : i, a = Jc(n, {
        functionName: "",
        data: r,
        method: o,
        headers: {
            "x-alipay-cloud-mode": "oss",
            "x-data-api-type": "oss",
            "x-expire-timestamp": Date.now() + 6e4
        },
        signHeaderKeys: [ "x-data-api-type", "x-expire-timestamp" ],
        config: t
    });
    return Gc({
        url: a.url,
        data: r,
        method: o,
        headers: a.headers
    }).then(function(e) {
        var t = e.data || {};
        if (!t.success) throw new Ts({
            code: e.errCode,
            message: e.errMsg,
            requestId: e.requestId
        });
        return t.data || {};
    }).catch(function(e) {
        throw new Ts({
            code: e.errCode,
            message: e.errMsg,
            requestId: e.requestId
        });
    });
}

function Yc() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = e.trim().replace(/^cloud:\/\//, ""), n = t.indexOf("/");
    if (n <= 0) throw new Ts({
        code: "INVALID_PARAM",
        message: "fileID不合法"
    });
    var r = t.substring(0, n), i = t.substring(n + 1);
    return r !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), 
    i;
}

function Xc() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
    return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
}

var Zc = {
    init: function(e) {
        e.provider = "alipay";
        var r = new (function() {
            function e(t) {
                if (c(this, e), [ "spaceId", "spaceAppId", "accessKey", "secretKey" ].forEach(function(e) {
                    if (!Object.prototype.hasOwnProperty.call(t, e)) throw new Error("".concat(e, " required"));
                }), t.endpoint) {
                    if ("string" != typeof t.endpoint) throw new Error("endpoint must be string");
                    if (!/^https:\/\//.test(t.endpoint)) throw new Error("endpoint must start with https://");
                    t.endpoint = t.endpoint.replace(/\/$/, "");
                }
                this.config = Object.assign({}, t, {
                    endpoint: t.endpoint || "https://".concat(t.spaceId, ".api-hz.cloudbasefunction.cn")
                });
            }
            var r, i;
            return u(e, [ {
                key: "callFunction",
                value: function(e) {
                    return function(e, t) {
                        var n = e.name, r = e.data, i = "POST", o = Jc("/functions/invokeFunction", {
                            functionName: n,
                            data: r,
                            method: i,
                            headers: {
                                "x-to-function-name": n
                            },
                            signHeaderKeys: [ "x-to-function-name" ],
                            config: t
                        });
                        return Gc({
                            url: o.url,
                            data: r,
                            method: i,
                            headers: o.headers
                        }).then(function(e) {
                            return {
                                errCode: 0,
                                success: !0,
                                requestId: e.requestId,
                                result: e.data
                            };
                        }).catch(function(e) {
                            throw new Ts({
                                code: e.errCode,
                                message: e.errMsg,
                                requestId: e.requestId
                            });
                        });
                    }(e, this.config);
                }
            }, {
                key: "uploadFileToOSS",
                value: function(e) {
                    var t = e.url, n = e.filePath, r = e.fileType, i = e.formData, o = e.onUploadProgress;
                    return new Promise(function(e, a) {
                        var s = Os.uploadFile({
                            url: t,
                            filePath: n,
                            fileType: r,
                            formData: i,
                            name: "file",
                            success: function(t) {
                                t && t.statusCode < 400 ? e(t) : a(new Ts({
                                    code: "UPLOAD_FAILED",
                                    message: "文件上传失败"
                                }));
                            },
                            fail: function(e) {
                                a(new Ts({
                                    code: e.code || "UPLOAD_FAILED",
                                    message: e.message || e.errMsg || "文件上传失败"
                                }));
                            }
                        });
                        "function" == typeof o && s && "function" == typeof s.onProgressUpdate && s.onProgressUpdate(function(e) {
                            o({
                                loaded: e.totalBytesSent,
                                total: e.totalBytesExpectedToSend
                            });
                        });
                    });
                }
            }, {
                key: "uploadFile",
                value: (i = n(t().mark(function e(n) {
                    var r, i, o, a, s, c, u, f, l, h, p;
                    return t().wrap(function(e) {
                        for (;;) switch (e.prev = e.next) {
                          case 0:
                            if (r = n.filePath, i = n.cloudPath, o = void 0 === i ? "" : i, a = n.fileType, 
                            s = void 0 === a ? "image" : a, c = n.onUploadProgress, "string" === Wa(o)) {
                                e.next = 3;
                                break;
                            }
                            throw new Ts({
                                code: "INVALID_PARAM",
                                message: "cloudPath必须为字符串类型"
                            });

                          case 3:
                            if (o = o.trim()) {
                                e.next = 5;
                                break;
                            }
                            throw new Ts({
                                code: "INVALID_PARAM",
                                message: "cloudPath不可为空"
                            });

                          case 5:
                            if (!/:\/\//.test(o)) {
                                e.next = 7;
                                break;
                            }
                            throw new Ts({
                                code: "INVALID_PARAM",
                                message: "cloudPath不合法"
                            });

                          case 7:
                            return e.next = 9, Qc({
                                path: "/".concat(o.replace(/^\//, ""), "?post_url")
                            }, this.config);

                          case 9:
                            return u = e.sent, f = u.file_id, l = u.upload_url, h = u.form_data, p = h && h.reduce(function(e, t) {
                                return e[t.key] = t.value, e;
                            }, {}), e.abrupt("return", this.uploadFileToOSS({
                                url: l,
                                filePath: r,
                                fileType: s,
                                formData: p,
                                onUploadProgress: c
                            }).then(function() {
                                return {
                                    fileID: f
                                };
                            }));

                          case 15:
                          case "end":
                            return e.stop();
                        }
                    }, e, this);
                })), function(e) {
                    return i.apply(this, arguments);
                })
            }, {
                key: "getTempFileURL",
                value: (r = n(t().mark(function e(n) {
                    var r, i = this;
                    return t().wrap(function(e) {
                        for (;;) switch (e.prev = e.next) {
                          case 0:
                            return r = n.fileList, e.abrupt("return", new Promise(function(e, t) {
                                (!r || r.length < 0) && t(new Ts({
                                    errCode: "INVALID_PARAM",
                                    errMsg: "fileList不能为空数组"
                                })), r.length > 50 && t(new Ts({
                                    errCode: "INVALID_PARAM",
                                    errMsg: "fileList数组长度不能超过50"
                                }));
                                var n, o = [], a = s(r);
                                try {
                                    for (a.s(); !(n = a.n()).done; ) {
                                        var c = n.value;
                                        "string" !== Wa(c) && t(new Ts({
                                            errCode: "INVALID_PARAM",
                                            errMsg: "fileList的元素必须是非空的字符串"
                                        }));
                                        var u = Yc.call(i, c);
                                        o.push({
                                            file_id: u,
                                            expire: 600
                                        });
                                    }
                                } catch (e) {
                                    e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                                    a.e(e);
                                } finally {
                                    a.f();
                                }
                                Qc({
                                    path: "/?download_url",
                                    data: {
                                        file_list: o
                                    },
                                    method: "POST"
                                }, i.config).then(function(t) {
                                    var n = t.file_list;
                                    e({
                                        fileList: (void 0 === n ? [] : n).map(function(e) {
                                            return {
                                                fileID: Xc.call(i, e.file_id),
                                                tempFileURL: e.download_url
                                            };
                                        })
                                    });
                                }).catch(function(e) {
                                    return t(e);
                                });
                            }));

                          case 2:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                })), function(e) {
                    return r.apply(this, arguments);
                })
            } ]), e;
        }())(e);
        return r.auth = function() {
            return {
                signInAnonymously: function() {
                    return Promise.resolve();
                },
                getLoginState: function() {
                    return Promise.resolve(!0);
                }
            };
        }, r;
    }
};

function eu(e) {
    var t, n = e.data;
    t = Rs();
    var r = JSON.parse(JSON.stringify(n || {}));
    if (Object.assign(r, {
        clientInfo: t
    }), !r.uniIdToken) {
        var i = Cs().token;
        i && (r.uniIdToken = i);
    }
    return r;
}

var tu = [ {
    rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
    content: "，云函数[{functionName}]在云端不存在，请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
    mode: "append"
} ], nu = /[\\^$.*+?()[\]{}|]/g, ru = RegExp(nu.source);

function iu(e, t, n) {
    return e.replace(new RegExp((r = t) && ru.test(r) ? r.replace(nu, "\\$&") : r, "g"), n);
    var r;
}

var ou, au = {
    code: 20101,
    message: "Invalid client"
};

function su(e) {
    var t = e || {}, n = t.errSubject, r = t.subject, i = t.errCode, o = t.errMsg, a = t.code, s = t.message, c = t.cause;
    return new Ts({
        subject: n || r || "uni-secure-network",
        code: i || a || 2e4,
        message: o || s,
        cause: c
    });
}

function cu() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.secretType;
    return "request" === t || "response" === t || "both" === t;
}

function uu(e) {
    e.functionName, e.result, e.logPvd;
}

function fu(e) {
    var t = e.callFunction, n = function(n) {
        var r = this, i = n.name;
        n.data = eu.call(e, {
            data: n.data
        });
        var o = {
            aliyun: "aliyun",
            tencent: "tcb",
            tcb: "tcb",
            alipay: "alipay"
        }[this.config.provider], a = cu(n) || !1;
        return t.call(this, n).then(function(e) {
            return e.errCode = 0, !a && uu.call(r, {
                functionName: i,
                result: e,
                logPvd: o
            }), Promise.resolve(e);
        }, function(e) {
            return !a && uu.call(r, {
                functionName: i,
                result: e,
                logPvd: o
            }), e && e.message && (e.message = function() {
                for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.message, n = void 0 === t ? "" : t, r = e.extraInfo, i = void 0 === r ? {} : r, o = e.formatter, a = void 0 === o ? [] : o, s = 0; s < a.length; s++) {
                    var c = a[s], u = c.rule, f = c.content, l = c.mode, h = n.match(u);
                    if (h) {
                        for (var p = f, d = 1; d < h.length; d++) p = iu(p, "{$".concat(d, "}"), h[d]);
                        for (var v in i) p = iu(p, "{".concat(v, "}"), i[v]);
                        return "replace" === l ? p : n + p;
                    }
                }
                return n;
            }({
                message: "[".concat(n.name, "]: ").concat(e.message),
                formatter: tu,
                extraInfo: {
                    functionName: i
                }
            })), Promise.reject(e);
        });
    };
    e.callFunction = function(t) {
        var r, i, o = e.config, a = o.provider, s = o.spaceId, c = t.name;
        return t.data = t.data || {}, r = (r = n).bind(e), i = function(e) {
            var t = e.name, n = e.data;
            return "uni-id-co" === t && "secureNetworkHandshakeByWeixin" === (void 0 === n ? {} : n).method;
        }(t) ? r.call(e, t) : cu(t) ? new ou({
            secretType: t.secretType,
            uniCloudIns: e
        }).wrapEncryptDataCallFunction(n.bind(e))(t) : function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.provider, n = e.spaceId, r = e.functionName, i = Ls(), o = i.appId, a = i.uniPlatform, s = i.osName, c = a;
            "app" === a && (c = s);
            var u = function() {
                var e, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.provider, r = t.spaceId;
                if (!es) return {};
                n = "tencent" === (e = n) ? "tcb" : e;
                var i = es.find(function(e) {
                    return e.provider === n && e.spaceId === r;
                });
                return i && i.config;
            }({
                provider: t,
                spaceId: n
            });
            if (!u || !u.accessControl || !u.accessControl.enable) return !1;
            var f = u.accessControl.function || {}, l = Object.keys(f);
            if (0 === l.length) return !0;
            var h = function(e, t) {
                for (var n, r, i, o = 0; o < e.length; o++) {
                    var a = e[o];
                    a !== t ? "*" !== a ? a.split(",").map(function(e) {
                        return e.trim();
                    }).indexOf(t) > -1 && (r = a) : i = a : n = a;
                }
                return n || r || i;
            }(l, r);
            if (!h) return !1;
            if ((f[h] || []).find(function() {
                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                return e.appId === o && (e.platform || "").toLowerCase() === c.toLowerCase();
            })) return !0;
            throw console.error("此应用[appId: ".concat(o, ", platform: ").concat(c, "]不在云端配置的允许访问的应用列表内，参考：https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), 
            su(au);
        }({
            provider: a,
            spaceId: s,
            functionName: c
        }) ? new ou({
            secretType: t.secretType,
            uniCloudIns: e
        }).wrapVerifyClientCallFunction(n.bind(e))(t) : r(t), Object.defineProperty(i, "result", {
            get: function() {
                return console.warn("当前返回结果为Promise类型，不可直接访问其result属性，详情请参考：https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), 
                {};
            }
        }), i;
    };
}

ou = u(function e() {
    throw c(this, e), su({
        message: "Platform ".concat("mp-weixin", " is not enabled, please check whether secure network module is enabled in your manifest.json")
    });
});

var lu = Symbol("CLIENT_DB_INTERNAL");

function hu(e, t) {
    return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = lu, 
    e.inspect = null, e.__v_raw = void 0, new Proxy(e, {
        get: function(e, n, r) {
            if ("_uniClient" === n) return null;
            if ("symbol" == f(n)) return e[n];
            if (n in e || "string" != typeof n) {
                var i = e[n];
                return "function" == typeof i ? i.bind(e) : i;
            }
            return t.get(e, n, r);
        }
    });
}

function pu(e) {
    return {
        on: function(t, n) {
            e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
        },
        off: function(t, n) {
            e[t] = e[t] || [];
            var r = e[t].indexOf(n);
            -1 !== r && e[t].splice(r, 1);
        }
    };
}

var du = [ "db.Geo", "db.command", "command.aggregate" ];

function vu(e, t) {
    return du.indexOf("".concat(e, ".").concat(t)) > -1;
}

function gu(e) {
    switch (Wa(e = function e(t) {
        return t && e(t.__v_raw) || t;
    }(e))) {
      case "array":
        return e.map(function(e) {
            return gu(e);
        });

      case "object":
        return e._internalType === lu || Object.keys(e).forEach(function(t) {
            e[t] = gu(e[t]);
        }), e;

      case "regexp":
        return {
            $regexp: {
                source: e.source,
                flags: e.flags
            }
        };

      case "date":
        return {
            $date: e.toISOString()
        };

      default:
        return e;
    }
}

function mu(e) {
    return e && e.content && e.content.$method;
}

var yu = function() {
    function e(t, n, r) {
        c(this, e), this.content = t, this.prevStage = n || null, this.udb = null, this._database = r;
    }
    return u(e, [ {
        key: "toJSON",
        value: function() {
            for (var e = this, t = [ e.content ]; e.prevStage; ) e = e.prevStage, t.push(e.content);
            return {
                $db: t.reverse().map(function(e) {
                    return {
                        $method: e.$method,
                        $param: gu(e.$param)
                    };
                })
            };
        }
    }, {
        key: "toString",
        value: function() {
            return JSON.stringify(this.toJSON());
        }
    }, {
        key: "getAction",
        value: function() {
            var e = this.toJSON().$db.find(function(e) {
                return "action" === e.$method;
            });
            return e && e.$param && e.$param[0];
        }
    }, {
        key: "getCommand",
        value: function() {
            return {
                $db: this.toJSON().$db.filter(function(e) {
                    return "action" !== e.$method;
                })
            };
        }
    }, {
        key: "isAggregate",
        get: function() {
            for (var e = this; e; ) {
                var t = mu(e), n = mu(e.prevStage);
                if ("aggregate" === t && "collection" === n || "pipeline" === t) return !0;
                e = e.prevStage;
            }
            return !1;
        }
    }, {
        key: "isCommand",
        get: function() {
            for (var e = this; e; ) {
                if ("command" === mu(e)) return !0;
                e = e.prevStage;
            }
            return !1;
        }
    }, {
        key: "isAggregateCommand",
        get: function() {
            for (var e = this; e; ) {
                var t = mu(e), n = mu(e.prevStage);
                if ("aggregate" === t && "command" === n) return !0;
                e = e.prevStage;
            }
            return !1;
        }
    }, {
        key: "getNextStageFn",
        value: function(e) {
            var t = this;
            return function() {
                return _u({
                    $method: e,
                    $param: gu(Array.from(arguments))
                }, t, t._database);
            };
        }
    }, {
        key: "count",
        get: function() {
            return this.isAggregate ? this.getNextStageFn("count") : function() {
                return this._send("count", Array.from(arguments));
            };
        }
    }, {
        key: "remove",
        get: function() {
            return this.isCommand ? this.getNextStageFn("remove") : function() {
                return this._send("remove", Array.from(arguments));
            };
        }
    }, {
        key: "get",
        value: function() {
            return this._send("get", Array.from(arguments));
        }
    }, {
        key: "add",
        get: function() {
            return this.isCommand ? this.getNextStageFn("add") : function() {
                return this._send("add", Array.from(arguments));
            };
        }
    }, {
        key: "update",
        value: function() {
            return this._send("update", Array.from(arguments));
        }
    }, {
        key: "end",
        value: function() {
            return this._send("end", Array.from(arguments));
        }
    }, {
        key: "set",
        get: function() {
            return this.isCommand ? this.getNextStageFn("set") : function() {
                throw new Error("JQL禁止使用set方法");
            };
        }
    }, {
        key: "_send",
        value: function(e, t) {
            var n = this.getAction(), r = this.getCommand();
            return r.$db.push({
                $method: e,
                $param: gu(t)
            }), this._database._callCloudFunction({
                action: n,
                command: r
            });
        }
    } ]), e;
}();

function _u(e, t, n) {
    return hu(new yu(e, t, n), {
        get: function(e, t) {
            var r = "db";
            return e && e.content && (r = e.content.$method), vu(r, t) ? _u({
                $method: t
            }, e, n) : function() {
                return _u({
                    $method: t,
                    $param: gu(Array.from(arguments))
                }, e, n);
            };
        }
    });
}

function ku(e) {
    var t = e.path, n = e.method;
    return function() {
        function e() {
            c(this, e), this.param = Array.from(arguments);
        }
        return u(e, [ {
            key: "toJSON",
            value: function() {
                return {
                    $newDb: [].concat(p(t.map(function(e) {
                        return {
                            $method: e
                        };
                    })), [ {
                        $method: n,
                        $param: this.param
                    } ])
                };
            }
        }, {
            key: "toString",
            value: function() {
                return JSON.stringify(this.toJSON());
            }
        } ]), e;
    }();
}

function bu(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
    return hu(new e(t), {
        get: function(e, t) {
            return vu("db", t) ? _u({
                $method: t
            }, null, e) : function() {
                return _u({
                    $method: t,
                    $param: gu(Array.from(arguments))
                }, null, e);
            };
        }
    });
}

var wu = function(e) {
    i(n, e);
    var t = o(n);
    function n() {
        return c(this, n), t.apply(this, arguments);
    }
    return u(n, [ {
        key: "_parseResult",
        value: function(e) {
            return this._isJQL ? e.result : e;
        }
    }, {
        key: "_callCloudFunction",
        value: function(e) {
            var t = this, n = e.action, r = e.command, i = e.multiCommand, o = e.queryList;
            function a(e, t) {
                if (i && o) for (var n = 0; n < o.length; n++) {
                    var r = o[n];
                    r.udb && "function" == typeof r.udb.setResult && (t ? r.udb.setResult(t) : r.udb.setResult(e.result.dataList[n]));
                }
            }
            var s = this, c = this._isJQL ? "databaseForJQL" : "database";
            function u(e) {
                return s._callback("error", [ e ]), cs(us(c, "fail"), e).then(function() {
                    return cs(us(c, "complete"), e);
                }).then(function() {
                    return a(null, e), bs(hs, {
                        type: vs,
                        content: e
                    }), Promise.reject(e);
                });
            }
            var f = cs(us(c, "invoke")), l = this._uniClient;
            return f.then(function() {
                return l.callFunction({
                    name: "DCloud-clientDB",
                    type: "CLIENT_DB",
                    data: {
                        action: n,
                        command: r,
                        multiCommand: i
                    }
                });
            }).then(function(e) {
                var n = e.result, r = n.code, i = n.message, o = n.token, f = n.tokenExpired, l = n.systemInfo, h = void 0 === l ? [] : l;
                if (h) for (var p = 0; p < h.length; p++) {
                    var d = h[p], v = d.level, g = d.message, m = d.detail, y = console[v] || console.log, _ = "[System Info]" + g;
                    m && (_ = "".concat(_, "\n详细信息：").concat(m)), y(_);
                }
                if (r) return u(new Ts({
                    code: r,
                    message: i,
                    requestId: e.requestId
                }));
                e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, 
                o && f && (Es({
                    token: o,
                    tokenExpired: f
                }), t._callbackAuth("refreshToken", [ {
                    token: o,
                    tokenExpired: f
                } ]), t._callback("refreshToken", [ {
                    token: o,
                    tokenExpired: f
                } ]), bs(ds, {
                    token: o,
                    tokenExpired: f
                }));
                for (var k, b = [ {
                    prop: "affectedDocs",
                    tips: "affectedDocs不再推荐使用，请使用inserted/deleted/updated/data.length替代"
                }, {
                    prop: "code",
                    tips: "code不再推荐使用，请使用errCode替代"
                }, {
                    prop: "message",
                    tips: "message不再推荐使用，请使用errMsg替代"
                } ], w = function() {
                    var t = b[x], n = t.prop, r = t.tips;
                    if (n in e.result) {
                        var i = e.result[n];
                        Object.defineProperty(e.result, n, {
                            get: function() {
                                return console.warn(r), i;
                            }
                        });
                    }
                }, x = 0; x < b.length; x++) w();
                return k = e, cs(us(c, "success"), k).then(function() {
                    return cs(us(c, "complete"), k);
                }).then(function() {
                    a(k, null);
                    var e = s._parseResult(k);
                    return bs(hs, {
                        type: vs,
                        content: e
                    }), Promise.resolve(e);
                });
            }, function(e) {
                return /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化，请在web控制台保存一次schema以开启clientDB"), 
                u(new Ts({
                    code: e.code || "SYSTEM_ERROR",
                    message: e.message,
                    requestId: e.requestId
                }));
            });
        }
    } ]), n;
}(function() {
    function e() {
        var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.uniClient, r = void 0 === n ? {} : n, i = t.isJQL, o = void 0 !== i && i;
        c(this, e), this._uniClient = r, this._authCallBacks = {}, this._dbCallBacks = {}, 
        r._isDefault && (this._dbCallBacks = rs("_globalUniCloudDatabaseCallback")), o || (this.auth = pu(this._authCallBacks)), 
        this._isJQL = o, Object.assign(this, pu(this._dbCallBacks)), this.env = hu({}, {
            get: function(e, t) {
                return {
                    $env: t
                };
            }
        }), this.Geo = hu({}, {
            get: function(e, t) {
                return ku({
                    path: [ "Geo" ],
                    method: t
                });
            }
        }), this.serverDate = ku({
            path: [],
            method: "serverDate"
        }), this.RegExp = ku({
            path: [],
            method: "RegExp"
        });
    }
    return u(e, [ {
        key: "getCloudEnv",
        value: function(e) {
            if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
            return {
                $env: e.replace("$cloudEnv_", "")
            };
        }
    }, {
        key: "_callback",
        value: function(e, t) {
            var n = this._dbCallBacks;
            n[e] && n[e].forEach(function(e) {
                e.apply(void 0, p(t));
            });
        }
    }, {
        key: "_callbackAuth",
        value: function(e, t) {
            var n = this._authCallBacks;
            n[e] && n[e].forEach(function(e) {
                e.apply(void 0, p(t));
            });
        }
    }, {
        key: "multiSend",
        value: function() {
            var e = Array.from(arguments), t = e.map(function(e) {
                var t = e.getAction(), n = e.getCommand();
                if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
                return {
                    action: t,
                    command: n
                };
            });
            return this._callCloudFunction({
                multiCommand: t,
                queryList: e
            });
        }
    } ]), e;
}()), xu = "token无效，跳转登录页面", Su = "token过期，跳转登录页面", Pu = {
    TOKEN_INVALID_TOKEN_EXPIRED: Su,
    TOKEN_INVALID_INVALID_CLIENTID: xu,
    TOKEN_INVALID: xu,
    TOKEN_INVALID_WRONG_TOKEN: xu,
    TOKEN_INVALID_ANONYMOUS_USER: xu
}, Au = {
    "uni-id-token-expired": Su,
    "uni-id-check-token-failed": xu,
    "uni-id-token-not-exist": xu,
    "uni-id-check-device-feature-failed": xu
};

function Iu(e, t) {
    return (e ? "".concat(e, "/").concat(t) : t).replace(/^\//, "");
}

function Tu() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "", n = [], r = [];
    return e.forEach(function(e) {
        !0 === e.needLogin ? n.push(Iu(t, e.path)) : !1 === e.needLogin && r.push(Iu(t, e.path));
    }), {
        needLoginPage: n,
        notNeedLoginPage: r
    };
}

function Ou(e) {
    return e.split("?")[0].replace(/^\//, "");
}

function Cu() {
    return function(e) {
        var t = e && e.$page && e.$page.fullPath || "";
        return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
    }(function() {
        var e = getCurrentPages();
        return e[e.length - 1];
    }());
}

function Eu() {
    return Ou(Cu());
}

function Lu() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
    if (!e) return !1;
    if (!(t && t.list && t.list.length)) return !1;
    var n = t.list, r = Ou(e);
    return n.some(function(e) {
        return e.pagePath === r;
    });
}

var Ru, Mu = !!Da.uniIdRouter, ju = function() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Da, t = e.pages, n = void 0 === t ? [] : t, r = e.subPackages, i = void 0 === r ? [] : r, o = e.uniIdRouter, a = void 0 === o ? {} : o, s = e.tabBar, c = void 0 === s ? {} : s, u = a.loginPage, f = a.needLogin, l = void 0 === f ? [] : f, h = a.resToLogin, d = void 0 === h || h, v = Tu(n), g = v.needLoginPage, m = v.notNeedLoginPage, y = function() {
        var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = [], n = [];
        return e.forEach(function(e) {
            var r = e.root, i = e.pages, o = Tu(void 0 === i ? [] : i, r), a = o.needLoginPage, s = o.notNeedLoginPage;
            t.push.apply(t, p(a)), n.push.apply(n, p(s));
        }), {
            needLoginPage: t,
            notNeedLoginPage: n
        };
    }(i), _ = y.needLoginPage, k = y.notNeedLoginPage;
    return {
        loginPage: u,
        routerNeedLogin: l,
        resToLogin: d,
        needLoginPage: [].concat(p(g), p(_)),
        notNeedLoginPage: [].concat(p(m), p(k)),
        loginPageInTabBar: Lu(u, c)
    };
}(), Uu = ju.loginPage, Du = ju.routerNeedLogin, Nu = ju.resToLogin, $u = ju.needLoginPage, qu = ju.notNeedLoginPage, Fu = ju.loginPageInTabBar;

if ($u.indexOf(Uu) > -1) throw new Error("Login page [".concat(Uu, '] should not be "needLogin", please check your pages.json'));

function Bu(e) {
    var t = Eu();
    if ("/" === e.charAt(0)) return e;
    var n = e.split("?"), r = h(n, 2), i = r[0], o = r[1], a = i.replace(/^\//, "").split("/"), s = t.split("/");
    s.pop();
    for (var c = 0; c < a.length; c++) {
        var u = a[c];
        ".." === u ? s.pop() : "." !== u && s.push(u);
    }
    return "" === s[0] && s.shift(), "/" + s.join("/") + (o ? "?" + o : "");
}

function Hu(e) {
    var t = Ou(e.redirect), n = Ou(Uu);
    return Eu() !== n && t !== n;
}

function Ku() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.api, n = e.redirect;
    if (n && Hu({
        redirect: n
    })) {
        var r, i, o = (i = n, "/" !== (r = Uu).charAt(0) && (r = "/" + r), i ? r.indexOf("?") > -1 ? r + "&uniIdRedirectUrl=".concat(encodeURIComponent(i)) : r + "?uniIdRedirectUrl=".concat(encodeURIComponent(i)) : r);
        Fu ? "navigateTo" !== t && "redirectTo" !== t || (t = "switchTab") : "switchTab" === t && (t = "navigateTo");
        var a = {
            navigateTo: en.navigateTo,
            redirectTo: en.redirectTo,
            switchTab: en.switchTab,
            reLaunch: en.reLaunch
        };
        setTimeout(function() {
            a[t]({
                url: o
            });
        });
    }
}

function Vu() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.url, n = {
        abortLoginPageJump: !1,
        autoToLoginPage: !1
    }, r = function() {
        var e, t = Cs(), n = t.token, r = t.tokenExpired;
        if (n) {
            if (r < Date.now()) {
                var i = "uni-id-token-expired";
                e = {
                    errCode: i,
                    errMsg: Au[i]
                };
            }
        } else {
            var o = "uni-id-check-token-failed";
            e = {
                errCode: o,
                errMsg: Au[o]
            };
        }
        return e;
    }();
    if (function(e) {
        var t = Ou(Bu(e));
        return !(qu.indexOf(t) > -1) && ($u.indexOf(t) > -1 || Du.some(function(t) {
            return n = e, new RegExp(t).test(n);
            var n;
        }));
    }(t) && r) {
        if (r.uniIdRedirectUrl = t, ys(ps).length > 0) return setTimeout(function() {
            bs(ps, r);
        }, 0), n.abortLoginPageJump = !0, n;
        n.autoToLoginPage = !0;
    }
    return n;
}

function Wu() {
    !function() {
        var e = Cu(), t = Vu({
            url: e
        }), n = t.abortLoginPageJump, r = t.autoToLoginPage;
        n || r && Ku({
            api: "redirectTo",
            redirect: e
        });
    }();
    for (var e = [ "navigateTo", "redirectTo", "reLaunch", "switchTab" ], t = function() {
        var t = e[n];
        en.addInterceptor(t, {
            invoke: function(e) {
                var n = Vu({
                    url: e.url
                }), r = n.abortLoginPageJump, i = n.autoToLoginPage;
                return r ? e : i ? (Ku({
                    api: t,
                    redirect: Bu(e.url)
                }), !1) : e;
            }
        });
    }, n = 0; n < e.length; n++) t();
}

function zu() {
    this.onResponse(function(e) {
        var t = e.type, n = e.content, r = !1;
        switch (t) {
          case "cloudobject":
            r = function(e) {
                return "object" == f(e) && (e || {}).errCode in Au;
            }(n);
            break;

          case "clientdb":
            r = function(e) {
                return "object" == f(e) && (e || {}).errCode in Pu;
            }(n);
        }
        r && function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = ys(ps);
            Ss().then(function() {
                var n = Cu();
                if (n && Hu({
                    redirect: n
                })) return t.length > 0 ? bs(ps, Object.assign({
                    uniIdRedirectUrl: n
                }, e)) : void (Uu && Ku({
                    api: "navigateTo",
                    redirect: n
                }));
            });
        }(n);
    });
}

function Ju(e) {
    var t;
    (t = e).onResponse = function(e) {
        _s(hs, e);
    }, t.offResponse = function(e) {
        ks(hs, e);
    }, function(e) {
        e.onNeedLogin = function(e) {
            _s(ps, e);
        }, e.offNeedLogin = function(e) {
            ks(ps, e);
        }, Mu && (rs("_globalUniCloudStatus").needLoginInit || (rs("_globalUniCloudStatus").needLoginInit = !0, 
        Ss().then(function() {
            Wu.call(e);
        }), Nu && zu.call(e)));
    }(e), function(e) {
        e.onRefreshToken = function(e) {
            _s(ds, e);
        }, e.offRefreshToken = function(e) {
            ks(ds, e);
        };
    }(e);
}

var Gu = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Qu = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;

function Yu() {
    var e, t, n = Cs().token || "", r = n.split(".");
    if (!n || 3 !== r.length) return {
        uid: null,
        role: [],
        permission: [],
        tokenExpired: 0
    };
    try {
        e = JSON.parse((t = r[1], decodeURIComponent(Ru(t).split("").map(function(e) {
            return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
        }).join(""))));
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        throw new Error("获取当前用户信息出错，详细错误信息为：" + e.message);
    }
    return e.tokenExpired = 1e3 * e.exp, delete e.exp, delete e.iat, e;
}

Ru = "function" != typeof atob ? function(e) {
    if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Qu.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
    var t;
    e += "==".slice(2 - (3 & e.length));
    for (var n, r, i = "", o = 0; o < e.length; ) t = Gu.indexOf(e.charAt(o++)) << 18 | Gu.indexOf(e.charAt(o++)) << 12 | (n = Gu.indexOf(e.charAt(o++))) << 6 | (r = Gu.indexOf(e.charAt(o++))), 
    i += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === r ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
    return i;
} : atob;

var Xu = function(e) {
    return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}(Na(function(e, t) {
    Object.defineProperty(t, "__esModule", {
        value: !0
    });
    var n = "chooseAndUploadFile:ok", r = "chooseAndUploadFile:fail";
    function i(e, t) {
        return e.tempFiles.forEach(function(e, n) {
            e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), 
            e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
        }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function(e) {
            return e.path;
        })), e;
    }
    function o(e, t, r) {
        var i = r.onChooseFile, o = r.onUploadProgress;
        return t.then(function(e) {
            if (i) {
                var t = i(e);
                if (void 0 !== t) return Promise.resolve(t).then(function(t) {
                    return void 0 === t ? e : t;
                });
            }
            return e;
        }).then(function(t) {
            return !1 === t ? {
                errMsg: n,
                tempFilePaths: [],
                tempFiles: []
            } : function(e, t) {
                var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 5, i = arguments.length > 3 ? arguments[3] : void 0;
                (t = Object.assign({}, t)).errMsg = n;
                var o = t.tempFiles, a = o.length, s = 0;
                return new Promise(function(n) {
                    for (;s < r; ) c();
                    function c() {
                        var r = s++;
                        if (r >= a) !o.find(function(e) {
                            return !e.url && !e.errMsg;
                        }) && n(t); else {
                            var u = o[r];
                            e.uploadFile({
                                filePath: u.path,
                                cloudPath: u.cloudPath,
                                fileType: u.fileType,
                                cloudPathAsRealPath: u.cloudPathAsRealPath,
                                onUploadProgress: function(e) {
                                    e.index = r, e.tempFile = u, e.tempFilePath = u.path, i && i(e);
                                }
                            }).then(function(e) {
                                u.url = e.fileID, r < a && c();
                            }).catch(function(e) {
                                u.errMsg = e.errMsg || e.message, r < a && c();
                            });
                        }
                    }
                });
            }(e, t, 5, o);
        });
    }
    t.initChooseAndUploadFile = function(e) {
        return function() {
            var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {
                type: "all"
            };
            return "image" === t.type ? o(e, function(e) {
                var t = e.count, n = e.sizeType, o = e.sourceType, a = void 0 === o ? [ "album", "camera" ] : o, s = e.extension;
                return new Promise(function(e, o) {
                    en.chooseImage({
                        count: t,
                        sizeType: n,
                        sourceType: a,
                        extension: s,
                        success: function(t) {
                            e(i(t, "image"));
                        },
                        fail: function(e) {
                            o({
                                errMsg: e.errMsg.replace("chooseImage:fail", r)
                            });
                        }
                    });
                });
            }(t), t) : "video" === t.type ? o(e, function(e) {
                var t = e.camera, n = e.compressed, o = e.maxDuration, a = e.sourceType, s = void 0 === a ? [ "album", "camera" ] : a, c = e.extension;
                return new Promise(function(e, a) {
                    en.chooseVideo({
                        camera: t,
                        compressed: n,
                        maxDuration: o,
                        sourceType: s,
                        extension: c,
                        success: function(t) {
                            var n = t.tempFilePath, r = t.duration, o = t.size, a = t.height, s = t.width;
                            e(i({
                                errMsg: "chooseVideo:ok",
                                tempFilePaths: [ n ],
                                tempFiles: [ {
                                    name: t.tempFile && t.tempFile.name || "",
                                    path: n,
                                    size: o,
                                    type: t.tempFile && t.tempFile.type || "",
                                    width: s,
                                    height: a,
                                    duration: r,
                                    fileType: "video",
                                    cloudPath: ""
                                } ]
                            }, "video"));
                        },
                        fail: function(e) {
                            a({
                                errMsg: e.errMsg.replace("chooseVideo:fail", r)
                            });
                        }
                    });
                });
            }(t), t) : o(e, function(e) {
                var t = e.count, n = e.extension;
                return new Promise(function(e, o) {
                    var a = en.chooseFile;
                    if (void 0 !== Zt && "function" == typeof Zt.chooseMessageFile && (a = Zt.chooseMessageFile), 
                    "function" != typeof a) return o({
                        errMsg: r + " 请指定 type 类型，该平台仅支持选择 image 或 video。"
                    });
                    a({
                        type: "all",
                        count: t,
                        extension: n,
                        success: function(t) {
                            e(i(t));
                        },
                        fail: function(e) {
                            o({
                                errMsg: e.errMsg.replace("chooseFile:fail", r)
                            });
                        }
                    });
                });
            }(t), t);
        };
    };
}));

function Zu(e) {
    return {
        props: {
            localdata: {
                type: Array,
                default: function() {
                    return [];
                }
            },
            options: {
                type: [ Object, Array ],
                default: function() {
                    return {};
                }
            },
            spaceInfo: {
                type: Object,
                default: function() {
                    return {};
                }
            },
            collection: {
                type: [ String, Array ],
                default: ""
            },
            action: {
                type: String,
                default: ""
            },
            field: {
                type: String,
                default: ""
            },
            orderby: {
                type: String,
                default: ""
            },
            where: {
                type: [ String, Object ],
                default: ""
            },
            pageData: {
                type: String,
                default: "add"
            },
            pageCurrent: {
                type: Number,
                default: 1
            },
            pageSize: {
                type: Number,
                default: 20
            },
            getcount: {
                type: [ Boolean, String ],
                default: !1
            },
            gettree: {
                type: [ Boolean, String ],
                default: !1
            },
            gettreepath: {
                type: [ Boolean, String ],
                default: !1
            },
            startwith: {
                type: String,
                default: ""
            },
            limitlevel: {
                type: Number,
                default: 10
            },
            groupby: {
                type: String,
                default: ""
            },
            groupField: {
                type: String,
                default: ""
            },
            distinct: {
                type: [ Boolean, String ],
                default: !1
            },
            foreignKey: {
                type: String,
                default: ""
            },
            loadtime: {
                type: String,
                default: "auto"
            },
            manual: {
                type: Boolean,
                default: !1
            }
        },
        data: function() {
            return {
                mixinDatacomLoading: !1,
                mixinDatacomHasMore: !1,
                mixinDatacomResData: [],
                mixinDatacomErrorMessage: "",
                mixinDatacomPage: {}
            };
        },
        created: function() {
            var e = this;
            this.mixinDatacomPage = {
                current: this.pageCurrent,
                size: this.pageSize,
                count: 0
            }, this.$watch(function() {
                var t = [];
                return [ "pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct" ].forEach(function(n) {
                    t.push(e[n]);
                }), t;
            }, function(t, n) {
                if ("manual" !== e.loadtime) {
                    for (var r = !1, i = [], o = 2; o < t.length; o++) t[o] !== n[o] && (i.push(t[o]), 
                    r = !0);
                    t[0] !== n[0] && (e.mixinDatacomPage.current = e.pageCurrent), e.mixinDatacomPage.size = e.pageSize, 
                    e.onMixinDatacomPropsChange(r, i);
                }
            });
        },
        methods: {
            onMixinDatacomPropsChange: function(e, t) {},
            mixinDatacomEasyGet: function() {
                var e = this, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.getone, r = void 0 !== n && n, i = t.success, o = t.fail;
                this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", 
                this.mixinDatacomGet().then(function(t) {
                    e.mixinDatacomLoading = !1;
                    var n = t.result, o = n.data, a = n.count;
                    e.getcount && (e.mixinDatacomPage.count = a), e.mixinDatacomHasMore = o.length < e.pageSize;
                    var s = r ? o.length ? o[0] : void 0 : o;
                    e.mixinDatacomResData = s, i && i(s);
                }).catch(function(t) {
                    e.mixinDatacomLoading = !1, e.mixinDatacomErrorMessage = t, o && o(t);
                }));
            },
            mixinDatacomGet: function() {
                var t, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r = e.database(this.spaceInfo), i = n.action || this.action;
                i && (r = r.action(i));
                var o = n.collection || this.collection;
                r = Array.isArray(o) ? (t = r).collection.apply(t, p(o)) : r.collection(o);
                var a = n.where || this.where;
                a && Object.keys(a).length && (r = r.where(a));
                var s = n.field || this.field;
                s && (r = r.field(s));
                var c = n.foreignKey || this.foreignKey;
                c && (r = r.foreignKey(c));
                var u = n.groupby || this.groupby;
                u && (r = r.groupBy(u));
                var f = n.groupField || this.groupField;
                f && (r = r.groupField(f)), !0 === (void 0 !== n.distinct ? n.distinct : this.distinct) && (r = r.distinct());
                var l = n.orderby || this.orderby;
                l && (r = r.orderBy(l));
                var h = void 0 !== n.pageCurrent ? n.pageCurrent : this.mixinDatacomPage.current, d = void 0 !== n.pageSize ? n.pageSize : this.mixinDatacomPage.size, v = void 0 !== n.getcount ? n.getcount : this.getcount, g = void 0 !== n.gettree ? n.gettree : this.gettree, m = void 0 !== n.gettreepath ? n.gettreepath : this.gettreepath, y = {
                    getCount: v
                }, _ = {
                    limitLevel: void 0 !== n.limitlevel ? n.limitlevel : this.limitlevel,
                    startWith: void 0 !== n.startwith ? n.startwith : this.startwith
                };
                return g && (y.getTree = _), m && (y.getTreePath = _), r = r.skip(d * (h - 1)).limit(d).get(y);
            }
        }
    };
}

function ef(e) {
    return rs("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
}

function tf() {
    return nf.apply(this, arguments);
}

function nf() {
    return (nf = n(t().mark(function e() {
        var n, r, i, o, a, s, c, u = arguments;
        return t().wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                if (n = u.length > 0 && void 0 !== u[0] ? u[0] : {}, r = n.openid, i = n.callLoginByWeixin, 
                o = void 0 !== i && i, a = ef(this), !r || !o) {
                    e.next = 4;
                    break;
                }
                throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");

              case 4:
                if (!r) {
                    e.next = 6;
                    break;
                }
                return e.abrupt("return", (a.mpWeixinOpenid = r, {}));

              case 6:
                return e.next = 8, new Promise(function(e, t) {
                    en.login({
                        success: function(t) {
                            e(t.code);
                        },
                        fail: function(e) {
                            t(new Error(e.errMsg));
                        }
                    });
                });

              case 8:
                return s = e.sent, c = this.importObject("uni-id-co", {
                    customUI: !0
                }), e.next = 12, c.secureNetworkHandshakeByWeixin({
                    code: s,
                    callLoginByWeixin: o
                });

              case 12:
                return a.mpWeixinCode = s, e.abrupt("return", {
                    code: s
                });

              case 14:
              case "end":
                return e.stop();
            }
        }, e, this);
    }))).apply(this, arguments);
}

function rf(e) {
    return of.apply(this, arguments);
}

function of() {
    return (of = n(t().mark(function e(n) {
        var r;
        return t().wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                return r = ef(this), e.abrupt("return", (r.initPromise || (r.initPromise = tf.call(this, n)), 
                r.initPromise));

              case 2:
              case "end":
                return e.stop();
            }
        }, e, this);
    }))).apply(this, arguments);
}

function af(e) {
    var t = {
        getSystemInfo: en.getSystemInfo,
        getPushClientId: en.getPushClientId
    };
    return function(n) {
        return new Promise(function(i, o) {
            t[e](r(r({}, n), {}, {
                success: function(e) {
                    i(e);
                },
                fail: function(e) {
                    o(e);
                }
            }));
        });
    };
}

var sf = function(r) {
    i(f, r);
    var a, s = o(f);
    function f() {
        var t;
        return c(this, f), (t = s.call(this))._uniPushMessageCallback = t._receivePushMessage.bind(e(t)), 
        t._currentMessageId = -1, t._payloadQueue = [], t;
    }
    return u(f, [ {
        key: "init",
        value: function() {
            var e = this;
            return Promise.all([ af("getSystemInfo")(), af("getPushClientId")() ]).then(function() {
                var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], n = h(t, 2), r = n[0], i = void 0 === r ? {} : r, o = i.appId, a = n[1], s = void 0 === a ? {} : a, c = s.cid;
                if (!o) throw new Error("Invalid appId, please check the manifest.json file");
                if (!c) throw new Error("Invalid push client id");
                e._appId = o, e._pushClientId = c, e._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), 
                e.emit("open"), e._initMessageListener();
            }, function(t) {
                throw e.emit("error", t), e.close(), t;
            });
        }
    }, {
        key: "open",
        value: (a = n(t().mark(function e() {
            return t().wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return e.abrupt("return", this.init());

                  case 1:
                  case "end":
                    return e.stop();
                }
            }, e, this);
        })), function() {
            return a.apply(this, arguments);
        })
    }, {
        key: "_isUniCloudSSE",
        value: function(e) {
            if ("receive" !== e.type) return !1;
            var t = e && e.data && e.data.payload;
            return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
        }
    }, {
        key: "_receivePushMessage",
        value: function(e) {
            if (this._isUniCloudSSE(e)) {
                var t = e && e.data && e.data.payload, n = t.action, r = t.messageId, i = t.message;
                this._payloadQueue.push({
                    action: n,
                    messageId: r,
                    message: i
                }), this._consumMessage();
            }
        }
    }, {
        key: "_consumMessage",
        value: function() {
            for (var e = this; ;) {
                var t = this._payloadQueue.find(function(t) {
                    return t.messageId === e._currentMessageId + 1;
                });
                if (!t) break;
                this._currentMessageId++, this._parseMessagePayload(t);
            }
        }
    }, {
        key: "_parseMessagePayload",
        value: function(e) {
            var t = e.action, n = e.messageId, r = e.message;
            "end" === t ? this._end({
                messageId: n,
                message: r
            }) : "message" === t && this._appendMessage({
                messageId: n,
                message: r
            });
        }
    }, {
        key: "_appendMessage",
        value: function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = (e.messageId, 
            e.message);
            this.emit("message", t);
        }
    }, {
        key: "_end",
        value: function() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = (e.messageId, 
            e.message);
            this.emit("end", t), this.close();
        }
    }, {
        key: "_initMessageListener",
        value: function() {
            en.onPushMessage(this._uniPushMessageCallback);
        }
    }, {
        key: "_destroy",
        value: function() {
            en.offPushMessage(this._uniPushMessageCallback);
        }
    }, {
        key: "toJSON",
        value: function() {
            return {
                appId: this._appId,
                pushClientId: this._pushClientId,
                seqId: this._seqId
            };
        }
    }, {
        key: "close",
        value: function() {
            this._destroy(), this.emit("close");
        }
    } ]), f;
}(function() {
    function e() {
        c(this, e), this._callback = {};
    }
    return u(e, [ {
        key: "addListener",
        value: function(e, t) {
            this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
        }
    }, {
        key: "on",
        value: function(e, t) {
            return this.addListener(e, t);
        }
    }, {
        key: "removeListener",
        value: function(e, t) {
            if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
            var n = this._callback[e];
            if (n) {
                var r = function(e, t) {
                    for (var n = e.length - 1; n >= 0; n--) if (e[n] === t) return n;
                    return -1;
                }(n, t);
                n.splice(r, 1);
            }
        }
    }, {
        key: "off",
        value: function(e, t) {
            return this.removeListener(e, t);
        }
    }, {
        key: "removeAllListener",
        value: function(e) {
            delete this._callback[e];
        }
    }, {
        key: "emit",
        value: function(e) {
            for (var t = this._callback[e], n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i];
            if (t) for (var o = 0; o < t.length; o++) t[o].apply(t, r);
        }
    } ]), e;
}()), cf = {
    tcb: Kc,
    tencent: Kc,
    aliyun: $s,
    private: Wc,
    alipay: Zc
}, uf = new (function() {
    function e() {
        c(this, e);
    }
    return u(e, [ {
        key: "init",
        value: function(e) {
            var i, o = {}, a = cf[e.provider];
            if (!a) throw new Error("未提供正确的provider参数");
            return function(e) {
                e._initPromiseHub || (e._initPromiseHub = new Xa({
                    createPromise: function() {
                        var t = Promise.resolve();
                        t = new Promise(function(e) {
                            setTimeout(function() {
                                e();
                            }, 1);
                        });
                        var n = e.auth();
                        return t.then(function() {
                            return n.getLoginState();
                        }).then(function(e) {
                            return e ? Promise.resolve() : n.signInAnonymously();
                        });
                    }
                }));
            }(o = a.init(e)), fu(o), function(e) {
                var t = e.uploadFile;
                e.uploadFile = function(e) {
                    return t.call(this, e);
                };
            }(o), (i = o).database = function(e) {
                if (e && Object.keys(e).length > 0) return i.init(e).database();
                if (this._database) return this._database;
                var t = bu(wu, {
                    uniClient: i
                });
                return this._database = t, t;
            }, i.databaseForJQL = function(e) {
                if (e && Object.keys(e).length > 0) return i.init(e).databaseForJQL();
                if (this._databaseForJQL) return this._databaseForJQL;
                var t = bu(wu, {
                    uniClient: i,
                    isJQL: !0
                });
                return this._databaseForJQL = t, t;
            }, function(e) {
                e.getCurrentUserInfo = Yu, e.chooseAndUploadFile = Xu.initChooseAndUploadFile(e), 
                Object.assign(e, {
                    get mixinDatacom() {
                        return Zu(e);
                    }
                }), e.SSEChannel = sf, e.initSecureNetworkByWeixin = function(e) {
                    return function() {
                        var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.openid, r = t.callLoginByWeixin, i = void 0 !== r && r;
                        return rf.call(e, {
                            openid: n,
                            callLoginByWeixin: i
                        });
                    };
                }(e), e.importObject = function(e) {
                    return function(i) {
                        var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, a = o = function(e) {
                            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                            return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, 
                            Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), 
                            "object" == f(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
                        }({
                            customUI: !1,
                            loadingOptions: {
                                title: "加载中...",
                                mask: !0
                            },
                            errorOptions: {
                                type: "modal",
                                retry: !1
                            }
                        }, o), s = a.customUI, c = a.loadingOptions, u = a.errorOptions, l = a.parseSystemError, h = !s;
                        return new Proxy({}, {
                            get: function(a, s) {
                                switch (s) {
                                  case "toString":
                                    return "[object UniCloudObject]";

                                  case "toJSON":
                                    return {};
                                }
                                return function() {
                                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, i = e.fn, o = e.interceptorName, a = e.getCallbackArgs;
                                    return n(t().mark(function e() {
                                        var n, s, c, u, f, l, h = arguments;
                                        return t().wrap(function(e) {
                                            for (;;) switch (e.prev = e.next) {
                                              case 0:
                                                for (n = h.length, s = new Array(n), c = 0; c < n; c++) s[c] = h[c];
                                                return u = a ? a({
                                                    params: s
                                                }) : {}, e.prev = 2, e.next = 5, cs(us(o, "invoke"), r({}, u));

                                              case 5:
                                                return e.next = 7, i.apply(void 0, s);

                                              case 7:
                                                return f = e.sent, e.next = 10, cs(us(o, "success"), r(r({}, u), {}, {
                                                    result: f
                                                }));

                                              case 10:
                                                return e.abrupt("return", f);

                                              case 13:
                                                return e.prev = 13, e.t0 = e.catch(2), l = e.t0, e.next = 18, cs(us(o, "fail"), r(r({}, u), {}, {
                                                    error: l
                                                }));

                                              case 18:
                                                throw l;

                                              case 19:
                                                return e.prev = 19, e.next = 22, cs(us(o, "complete"), r(r({}, u), {}, l ? {
                                                    error: l
                                                } : {
                                                    result: f
                                                }));

                                              case 22:
                                                return e.finish(19);

                                              case 23:
                                              case "end":
                                                return e.stop();
                                            }
                                        }, e, null, [ [ 2, 13, 19, 23 ] ]);
                                    }));
                                }({
                                    fn: function() {
                                        var a = n(t().mark(function a() {
                                            var d, v, g, m, y, _, k, b, w, x, S, P, A, I, T, O = arguments;
                                            return t().wrap(function(a) {
                                                for (;;) switch (a.prev = a.next) {
                                                  case 0:
                                                    for (h && en.showLoading({
                                                        title: c.title,
                                                        mask: c.mask
                                                    }), v = O.length, g = new Array(v), m = 0; m < v; m++) g[m] = O[m];
                                                    return y = {
                                                        name: i,
                                                        type: "OBJECT",
                                                        data: {
                                                            method: s,
                                                            params: g
                                                        }
                                                    }, "object" == f(o.secretMethods) && function(e, t) {
                                                        var n = t.data.method, r = e.secretMethods || {}, i = r[n] || r["*"];
                                                        i && (t.secretType = i);
                                                    }(o, y), _ = !1, a.prev = 5, a.next = 8, e.callFunction(y);

                                                  case 8:
                                                    d = a.sent, a.next = 14;
                                                    break;

                                                  case 11:
                                                    a.prev = 11, a.t0 = a.catch(5), _ = !0, d = {
                                                        result: new Ts(a.t0)
                                                    };

                                                  case 14:
                                                    if (k = d.result || {}, b = k.errSubject, w = k.errCode, x = k.errMsg, S = k.newToken, 
                                                    h && en.hideLoading(), S && S.token && S.tokenExpired && (Es(S), bs(ds, r({}, S))), 
                                                    !w) {
                                                        a.next = 40;
                                                        break;
                                                    }
                                                    if (P = x, a.t1 = _ && l, !a.t1) {
                                                        a.next = 25;
                                                        break;
                                                    }
                                                    return a.next = 21, l({
                                                        objectName: i,
                                                        methodName: s,
                                                        params: g,
                                                        errSubject: b,
                                                        errCode: w,
                                                        errMsg: x
                                                    });

                                                  case 21:
                                                    if (a.t2 = a.sent.errMsg, a.t2) {
                                                        a.next = 24;
                                                        break;
                                                    }
                                                    a.t2 = x;

                                                  case 24:
                                                    P = a.t2;

                                                  case 25:
                                                    if (!h) {
                                                        a.next = 38;
                                                        break;
                                                    }
                                                    if ("toast" !== u.type) {
                                                        a.next = 30;
                                                        break;
                                                    }
                                                    en.showToast({
                                                        title: P,
                                                        icon: "none"
                                                    }), a.next = 38;
                                                    break;

                                                  case 30:
                                                    if ("modal" === u.type) {
                                                        a.next = 32;
                                                        break;
                                                    }
                                                    throw new Error("Invalid errorOptions.type: ".concat(u.type));

                                                  case 32:
                                                    return a.next = 34, n(t().mark(function e() {
                                                        var n, r, i, o, a, s, c = arguments;
                                                        return t().wrap(function(e) {
                                                            for (;;) switch (e.prev = e.next) {
                                                              case 0:
                                                                return n = c.length > 0 && void 0 !== c[0] ? c[0] : {}, r = n.title, i = n.content, 
                                                                o = n.showCancel, a = n.cancelText, s = n.confirmText, e.abrupt("return", new Promise(function(e, t) {
                                                                    en.showModal({
                                                                        title: r,
                                                                        content: i,
                                                                        showCancel: o,
                                                                        cancelText: a,
                                                                        confirmText: s,
                                                                        success: function(t) {
                                                                            e(t);
                                                                        },
                                                                        fail: function() {
                                                                            e({
                                                                                confirm: !1,
                                                                                cancel: !0
                                                                            });
                                                                        }
                                                                    });
                                                                }));

                                                              case 2:
                                                              case "end":
                                                                return e.stop();
                                                            }
                                                        }, e);
                                                    }))({
                                                        title: "提示",
                                                        content: P,
                                                        showCancel: u.retry,
                                                        cancelText: "取消",
                                                        confirmText: u.retry ? "重试" : "确定"
                                                    });

                                                  case 34:
                                                    if (A = a.sent, I = A.confirm, !u.retry || !I) {
                                                        a.next = 38;
                                                        break;
                                                    }
                                                    return a.abrupt("return", p.apply(void 0, g));

                                                  case 38:
                                                    throw (T = new Ts({
                                                        subject: b,
                                                        code: w,
                                                        message: x,
                                                        requestId: d.requestId
                                                    })).detail = d.result, bs(hs, {
                                                        type: ms,
                                                        content: T
                                                    }), T;

                                                  case 40:
                                                    return a.abrupt("return", (bs(hs, {
                                                        type: ms,
                                                        content: d.result
                                                    }), d.result));

                                                  case 41:
                                                  case "end":
                                                    return a.stop();
                                                }
                                            }, a, null, [ [ 5, 11 ] ]);
                                        }));
                                        function p() {
                                            return a.apply(this, arguments);
                                        }
                                        return p;
                                    }(),
                                    interceptorName: "callObject",
                                    getCallbackArgs: function() {
                                        var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.params;
                                        return {
                                            objectName: i,
                                            methodName: s,
                                            params: t
                                        };
                                    }
                                });
                            }
                        });
                    };
                }(e);
            }(o), [ "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile" ].forEach(function(e) {
                if (o[e]) {
                    var t, n, r = o[e];
                    o[e] = function() {
                        return r.apply(o, Array.from(arguments));
                    }, o[e] = (t = o[e], n = e, function(e) {
                        var r = this, i = !1;
                        if ("callFunction" === n) {
                            var o = e && e.type || Ha;
                            i = o !== Ha;
                        }
                        var a = "callFunction" === n && !i, s = this._initPromiseHub.exec(), c = Ps(e = e || {}), u = c.success, f = c.fail, l = c.complete, h = s.then(function() {
                            return i ? Promise.resolve() : cs(us(n, "invoke"), e);
                        }).then(function() {
                            return t.call(r, e);
                        }).then(function(e) {
                            return i ? Promise.resolve(e) : cs(us(n, "success"), e).then(function() {
                                return cs(us(n, "complete"), e);
                            }).then(function() {
                                return a && bs(hs, {
                                    type: gs,
                                    content: e
                                }), Promise.resolve(e);
                            });
                        }, function(e) {
                            return i ? Promise.reject(e) : cs(us(n, "fail"), e).then(function() {
                                return cs(us(n, "complete"), e);
                            }).then(function() {
                                return bs(hs, {
                                    type: gs,
                                    content: e
                                }), Promise.reject(e);
                            });
                        });
                        if (!(u || f || l)) return h;
                        h.then(function(e) {
                            u && u(e), l && l(e), a && bs(hs, {
                                type: gs,
                                content: e
                            });
                        }, function(e) {
                            f && f(e), l && l(e), a && bs(hs, {
                                type: gs,
                                content: e
                            });
                        });
                    }).bind(o);
                }
            }), o.init = this.init, o;
        }
    } ]), e;
}())();

!function() {
    var e = ts, t = {};
    if (e && 1 === e.length) t = e[0], (uf = uf.init(t))._isDefault = !0; else {
        var n;
        n = e && e.length > 0 ? "应用有多个服务空间，请通过uniCloud.init方法指定要使用的服务空间" : "应用未关联服务空间，请在uniCloud目录右键关联服务空间", 
        [ "auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject" ].forEach(function(e) {
            uf[e] = function() {
                return console.error(n), Promise.reject(new Ts({
                    code: "SYS_ERR",
                    message: n
                }));
            };
        });
    }
    Object.assign(uf, {
        get mixinDatacom() {
            return Zu(uf);
        }
    }), Ju(uf), uf.addInterceptor = as, uf.removeInterceptor = ss, uf.interceptObject = fs;
}();

var ff = uf;

exports.Ws = ff, exports._export_sfc = function(e, t) {
    var n, r = e.__vccOpts || e, i = s(t);
    try {
        for (i.s(); !(n = i.n()).done; ) {
            var o = h(n.value, 2), a = o[0], c = o[1];
            r[a] = c;
        }
    } catch (e) {
        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
        i.e(e);
    } finally {
        i.f();
    }
    return r;
}, exports.createSSRApp = function(e) {
    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
    return e && (e.mpType = "app"), Ao(e, t).use($o);
}, exports.createStore = function(e) {
    return new ja(e);
}, exports.e = function(e) {
    for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
    return I.apply(void 0, [ e ].concat(n));
}, exports.f = function(e, t) {
    return function(e, t) {
        var n;
        if (E(e) || j(e)) {
            n = new Array(e.length);
            for (var r = 0, i = e.length; r < i; r++) n[r] = t(e[r], r, r);
        } else if ("number" == typeof e) {
            n = new Array(e);
            for (var o = 0; o < e; o++) n[o] = t(o + 1, o, o);
        } else if (D(e)) if (e[Symbol.iterator]) n = Array.from(e, function(e, n) {
            return t(e, n, n);
        }); else {
            var a = Object.keys(e);
            n = new Array(a.length);
            for (var s = 0, c = a.length; s < c; s++) {
                var u = a[s];
                n[s] = t(e[u], u, s);
            }
        } else n = [];
        return n;
    }(e, t);
}, exports.index = en, exports.initVueI18n = function(e) {
    var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, i = arguments.length > 3 ? arguments[3] : void 0;
    "string" != typeof e && (e = (t = [ n, e ])[0], n = t[1]), "string" != typeof e && (e = void 0 !== en && en.getLocale ? en.getLocale() : "undefined" != typeof global && global.getLocale ? global.getLocale() : "en"), 
    "string" != typeof r && (r = "undefined" != typeof __uniConfig && __uniConfig.fallbackLocale || "en");
    var o = new we({
        locale: e,
        fallbackLocale: r,
        messages: n,
        watcher: i
    }), a = function(e, t) {
        if ("function" != typeof getApp) a = function(e, t) {
            return o.t(e, t);
        }; else {
            var n = !1;
            a = function(e, t) {
                var r = getApp().$vm;
                return r && (r.$locale, n || (n = !0, function(e, t) {
                    e.$watchLocale ? e.$watchLocale(function(e) {
                        t.setLocale(e);
                    }) : e.$watch(function() {
                        return e.$locale;
                    }, function(e) {
                        t.setLocale(e);
                    });
                }(r, o))), o.t(e, t);
            };
        }
        return a(e, t);
    };
    return {
        i18n: o,
        f: function(e, t, n) {
            return o.f(e, t, n);
        },
        t: function(e, t) {
            return a(e, t);
        },
        add: function(e, t) {
            var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
            return o.add(e, t, n);
        },
        watch: function(e) {
            return o.watchLocale(e);
        },
        getLocale: function() {
            return o.getLocale();
        },
        setLocale: function(e) {
            return o.setLocale(e);
        }
    };
}, exports.n = function(e) {
    return function e(t) {
        var n = "";
        if (j(t)) n = t; else if (E(t)) for (var r = 0; r < t.length; r++) {
            var i = e(t[r]);
            i && (n += i + " ");
        } else if (D(t)) for (var o in t) t[o] && (n += o + " ");
        return n.trim();
    }(e);
}, exports.o = function(e, t) {
    return function(e, t) {
        var n = Gi(), r = n.ctx, i = void 0 === t || "mp-weixin" !== r.$mpPlatform && "mp-qq" !== r.$mpPlatform || !j(t) && "number" != typeof t ? "" : "_" + t, o = "e" + n.$ei++ + i, a = r.$scope;
        if (!e) return delete a[o], o;
        var s = a[o];
        return s ? s.value = e : a[o] = function(e, t) {
            var n = function e(n) {
                var r;
                (r = n).type && r.target && (r.preventDefault = w, r.stopPropagation = w, r.stopImmediatePropagation = w, 
                C(r, "detail") || (r.detail = {}), C(r, "markerId") && (r.detail = "object" == f(r.detail) ? r.detail : {}, 
                r.detail.markerId = r.markerId), F(r.detail) && C(r.detail, "checked") && !C(r.detail, "value") && (r.detail.value = r.detail.checked), 
                F(r.detail) && (r.target = I({}, r.target, r.detail)));
                var i = [ n ];
                n.detail && n.detail.__args__ && (i = n.detail.__args__);
                var o = e.value, a = function() {
                    return Ar(function(e, t) {
                        if (E(t)) {
                            var n = e.stopImmediatePropagation;
                            return e.stopImmediatePropagation = function() {
                                n && n.call(e), e._stopped = !0;
                            }, t.map(function(e) {
                                return function(t) {
                                    return !t._stopped && e(t);
                                };
                            });
                        }
                        return t;
                    }(n, o), t, 5, i);
                }, s = n.target, c = !!s && !!s.dataset && "true" === String(s.dataset.eventsync);
                if (!qo.includes(n.type) || c) {
                    var u = a();
                    if ("input" === n.type && (E(u) || N(u))) return;
                    return u;
                }
                setTimeout(a);
            };
            return n.value = e, n;
        }(e, n), o;
    }(e, t);
}, exports.p = function(e) {
    return function(e) {
        var t = Gi(), n = t.uid, r = t.__counter;
        return n + "," + ((Uo[n] || (Uo[n] = [])).push(function(e) {
            return e ? ur(t = e) || fr(t) || "__vInternal" in e ? I({}, e) : e : null;
            var t;
        }(e)) - 1) + "," + r;
    }(e);
}, exports.r = function(e, t, n) {
    return function e(t) {
        var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, i = Gi(), o = i.parent, a = i.isMounted, s = i.ctx.$scope, c = (s.properties || s.props).uI;
        if (c) if (o || a) {
            var u = function(e, t) {
                for (var n = t.parent; n; ) {
                    var r = n.$ssi;
                    if (r && r[e]) return r[e];
                    n = n.parent;
                }
            }(c, i);
            u && u(t, n, r);
        } else fi(function() {
            e(t, n, r);
        }, i);
    }(e, t, n);
}, exports.resolveComponent = function(e, t) {
    return function(e, t) {
        var n = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], r = Jr || Ji;
        if (r) {
            var i = r.type;
            if ("components" === e) {
                var o = function(e) {
                    var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
                    return M(e) ? e.displayName || e.name : e.name || t && e.__name;
                }(i, !1);
                if (o && (o === t || o === W(t) || o === G(W(t)))) return i;
            }
            var a = _i(r[e] || i[e], t) || _i(r.appContext[e], t);
            return !a && n ? i : a;
        }
    }("components", e, !0, t) || e;
}, exports.s = function(e) {
    return Fo(e);
}, exports.sr = function(e, t, n) {
    return function(e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = Gi(), i = r.$templateRefs;
        i.push({
            i: t,
            r: e,
            k: n.k,
            f: n.f
        });
    }(e, t, n);
}, exports.t = function(e) {
    return function(e) {
        return j(e) ? e : null == e ? "" : E(e) || D(e) && (e.toString === $ || !M(e.toString)) ? JSON.stringify(e, _, 2) : String(e);
    }(e);
}, exports.useStore = function(e) {
    return void 0 === e && (e = null), Qr(null !== e ? e : "store");
}, exports.w = function(e, t) {
    return function(e, t) {
        var n = t.name, r = t.path, i = t.vueId, o = Gi();
        e.path = r;
        var a = o.$ssi || (o.$ssi = {}), s = a[i] || (a[i] = function(e) {
            var t = function t(n, r, i) {
                var o = t.slots[n];
                if (o) {
                    var a = void 0 !== i;
                    i = i || 0;
                    var s = Gr(e), c = o.fn(r, n + (a ? "-" + i : ""), i), u = o.fn.path;
                    Gr(s), (e.$scopedSlotsData || (e.$scopedSlotsData = [])).push({
                        path: u,
                        index: i,
                        data: c
                    }), e.$updateScopedSlots();
                }
            };
            return t.slots = {}, t;
        }(o));
        return s.slots[n] ? s.slots[n].fn = e : s.slots[n] = {
            fn: e
        }, ne(o.ctx.$scope.data, r);
    }(e, t);
}, exports.wx$1 = Zt;